17 // System includes |
17 // System includes |
18 #include <babitflags.h> |
18 #include <babitflags.h> |
19 |
19 |
20 // User includes |
20 // User includes |
21 #include <aifwdefs.h> |
21 #include <aifwdefs.h> |
|
22 #include <aifwpublisherinfo.h> |
22 #include "xnappuiadapter.h" |
23 #include "xnappuiadapter.h" |
23 #include "xncomposer.h" |
24 #include "xncomposer.h" |
24 #include "xnodtparser.h" |
25 #include "xnodtparser.h" |
25 #include "xnviewmanager.h" |
26 #include "xnviewmanager.h" |
26 #include "xnviewdata.h" |
27 #include "xnviewdata.h" |
27 #include "xnpublisherdata.h" |
28 #include "xnpublisherdata.h" |
28 #include "xncontroladapter.h" |
29 #include "xncontroladapter.h" |
29 #include "xndomnode.h" |
30 #include "xndomnode.h" |
30 #include "xnnode.h" |
31 #include "xnnode.h" |
31 #include "xnoomsyshandler.h" |
32 #include "xnoomsyshandler.h" |
|
33 #include "ainativeuiplugins.h" |
32 #include "xnpanic.h" |
34 #include "xnpanic.h" |
33 |
35 |
34 #include "debug.h" |
36 #include "debug.h" |
35 |
37 |
36 // Constants |
38 // Constants |
37 |
39 _LIT8( KNs, "namespace" ); |
|
40 |
38 // ============================ LOCAL FUNCTIONS ================================ |
41 // ============================ LOCAL FUNCTIONS ================================ |
39 |
42 |
40 // ============================ MEMBER FUNCTIONS =============================== |
43 // ============================ MEMBER FUNCTIONS =============================== |
41 // ----------------------------------------------------------------------------- |
44 // ----------------------------------------------------------------------------- |
42 // CXnViewData::NewL() |
45 // CXnViewData::NewL() |
116 } |
119 } |
117 else |
120 else |
118 { |
121 { |
119 if ( aActive ) |
122 if ( aActive ) |
120 { |
123 { |
|
124 if ( iFlags.IsSet( EIsInitial ) ) |
|
125 { |
|
126 // Load device status plugin here because it is always needed |
|
127 THsPublisherInfo devstat( KDeviceStatusPluginUid, |
|
128 KDeviceStatusPluginName, KNs ); |
|
129 |
|
130 TAiFwPublisherInfo publisher( devstat, |
|
131 TAiFwCallback(), EAiFwSystemStartup ); |
|
132 |
|
133 CXnAppUiAdapter* appui = |
|
134 static_cast< CXnAppUiAdapter* >( iAvkonAppUi ); |
|
135 |
|
136 appui->LoadPublisher( publisher ); |
|
137 } |
|
138 |
121 iFlags.Set( EIsActive ); |
139 iFlags.Set( EIsActive ); |
122 iFlags.Clear( EIsInitial ); |
140 iFlags.Clear( EIsInitial ); |
123 |
141 |
124 LoadPublishers( EAiFwPageStartup ); |
142 LoadPublishers( EAiFwPageStartup ); |
125 |
143 |