blob: 37a02f25026cbd1b1cdaa5cb6e19ee0d31d12579 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* Copyright (c) 2004-2005 Nokia. All rights reserved. */
/* The PerlApp application is licensed under the same terms as Perl itself. */
#ifndef __PerlApp_h__
#define __PerlApp_h__
#include <aknapp.h>
#include <aknappui.h>
#include <akndoc.h>
#include <coecntrl.h>
#include <f32file.h>
class CPerlAppDocument : public CAknDocument
{
public:
CPerlAppDocument(CEikApplication& aApp):CAknDocument(aApp) {;}
CFileStore* OpenFileL(TBool aDoOpen, const TDesC& aFilename, RFs& aFs);
private: // from CEikDocument
CEikAppUi* CreateAppUiL();
};
class CPerlAppApplication : public CAknApplication
{
private:
CApaDocument* CreateDocumentL();
TUid AppDllUid() const;
};
const TUint KPerlAppOneLinerSize = 80;
class CPerlAppView;
class CPerlAppUi : public CAknAppUi
{
public:
void ConstructL();
~CPerlAppUi();
void HandleCommandL(TInt aCommand);
void OpenFileL(const TDesC& aFileName);
TBool ProcessCommandParametersL(TApaCommand aCommand, TFileName& aDocumentName, const TDesC8& aTail);
void InstallOrRunL(const TFileName& aFileName);
void SetFs(const RFs& aFs);
private:
CPerlAppView* iAppView;
RFs* iFs;
TBuf<KPerlAppOneLinerSize> iOneLiner;
};
class CPerlAppView : public CCoeControl
{
public:
static CPerlAppView* NewL(const TRect& aRect);
static CPerlAppView* NewLC(const TRect& aRect);
void Draw(const TRect& aRect) const;
private:
void ConstructL(const TRect& aRect);
};
#endif // __PerlApp_h__
|