0
|
1 |
/*
|
|
2 |
* Copyright (c) {Year(s)} {Copyright owner}.
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* {Name} {Company} ? Initial contribution
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
* {Name} {Company} ? {{Description of contribution}}
|
|
14 |
*
|
|
15 |
* Description:
|
|
16 |
* {{Description of the file}}
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#ifndef __TESTPUBLISHERDOCUMENT_h__
|
|
21 |
#define __TESTPUBLISHERDOCUMENT_h__
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <akndoc.h>
|
|
25 |
|
|
26 |
// FORWARD DECLARATIONS
|
|
27 |
class CTestPublisherAppUi;
|
|
28 |
class CEikApplication;
|
|
29 |
|
|
30 |
// CLASS DECLARATION
|
|
31 |
|
|
32 |
/**
|
|
33 |
* CTestPublisherDocument application class.
|
|
34 |
* An instance of class CTestPublisherDocument is the Document part of the
|
|
35 |
* AVKON application framework for the TestPublisher example application.
|
|
36 |
*/
|
|
37 |
class CTestPublisherDocument : public CAknDocument
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
// Constructors and destructor
|
|
41 |
|
|
42 |
/**
|
|
43 |
* NewL.
|
|
44 |
* Two-phased constructor.
|
|
45 |
* Construct a CTestPublisherDocument for the AVKON application aApp
|
|
46 |
* using two phase construction, and return a pointer
|
|
47 |
* to the created object.
|
|
48 |
* @param aApp Application creating this document.
|
|
49 |
* @return A pointer to the created instance of CTestPublisherDocument.
|
|
50 |
*/
|
|
51 |
static CTestPublisherDocument* NewL(CEikApplication& aApp);
|
|
52 |
|
|
53 |
/**
|
|
54 |
* NewLC.
|
|
55 |
* Two-phased constructor.
|
|
56 |
* Construct a CTestPublisherDocument for the AVKON application aApp
|
|
57 |
* using two phase construction, and return a pointer
|
|
58 |
* to the created object.
|
|
59 |
* @param aApp Application creating this document.
|
|
60 |
* @return A pointer to the created instance of CTestPublisherDocument.
|
|
61 |
*/
|
|
62 |
static CTestPublisherDocument* NewLC(CEikApplication& aApp);
|
|
63 |
|
|
64 |
/**
|
|
65 |
* ~CTestPublisherDocument
|
|
66 |
* Virtual Destructor.
|
|
67 |
*/
|
|
68 |
virtual ~CTestPublisherDocument();
|
|
69 |
|
|
70 |
public:
|
|
71 |
// Functions from base classes
|
|
72 |
|
|
73 |
/**
|
|
74 |
* CreateAppUiL
|
|
75 |
* From CEikDocument, CreateAppUiL.
|
|
76 |
* Create a CTestPublisherAppUi object and return a pointer to it.
|
|
77 |
* The object returned is owned by the Uikon framework.
|
|
78 |
* @return Pointer to created instance of AppUi.
|
|
79 |
*/
|
|
80 |
CEikAppUi* CreateAppUiL();
|
|
81 |
|
|
82 |
private:
|
|
83 |
// Constructors
|
|
84 |
|
|
85 |
/**
|
|
86 |
* ConstructL
|
|
87 |
* 2nd phase constructor.
|
|
88 |
*/
|
|
89 |
void ConstructL();
|
|
90 |
|
|
91 |
/**
|
|
92 |
* CTestPublisherDocument.
|
|
93 |
* C++ default constructor.
|
|
94 |
* @param aApp Application creating this document.
|
|
95 |
*/
|
|
96 |
CTestPublisherDocument(CEikApplication& aApp);
|
|
97 |
|
|
98 |
};
|
|
99 |
|
|
100 |
#endif // __TESTPUBLISHERDOCUMENT_h__
|
|
101 |
// End of File
|