|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: senfragment header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef MAIN_FRAGMENT_H |
|
26 #define MAIN_FRAGMENT_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "SenFragmentBase.h" |
|
30 #include "delegatefragment.h" |
|
31 |
|
32 // CLASS DECLARATIONS |
|
33 class CMainFragment : public CSenFragmentBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 static CMainFragment* NewL(); |
|
38 static CMainFragment* NewLC(); |
|
39 static CMainFragment* NewL(const TDesC8& aNsUri, |
|
40 const TDesC8& aLocalName, |
|
41 const TDesC8& aQName); |
|
42 static CMainFragment* NewLC(const TDesC8& aNsUri, |
|
43 const TDesC8& aLocalName, |
|
44 const TDesC8& aQName); |
|
45 virtual ~CMainFragment(); |
|
46 |
|
47 CDelegateFragment& DelegateFragment(); |
|
48 |
|
49 protected: |
|
50 |
|
51 /** |
|
52 * C++ default constructor. |
|
53 */ |
|
54 CMainFragment(); |
|
55 |
|
56 /** |
|
57 * By default Symbian 2nd phase constructor is private. |
|
58 */ |
|
59 void BaseConstructL(); |
|
60 void BaseConstructL(const TDesC8& aNsUri, |
|
61 const TDesC8& aLocalName, |
|
62 const TDesC8& aQName); |
|
63 |
|
64 // Functions from base classes |
|
65 |
|
66 // From CSenBaseFragment |
|
67 virtual void OnStartElementL(const RTagInfo& aElement, |
|
68 const RAttributeArray& aAttributes, |
|
69 TInt aErrorCode); |
|
70 |
|
71 virtual void OnEndElementL(const RTagInfo& aElement, |
|
72 TInt aErrorCode); |
|
73 |
|
74 private: // Data |
|
75 CDelegateFragment* ipDelegateFragment; // Owned |
|
76 }; |
|
77 |
|
78 #endif // MAIN_FRAGMENT_H |
|
79 |
|
80 // End of File |
|
81 |