42 CApaAppList& AppList(); |
42 CApaAppList& AppList(); |
43 |
43 |
44 void NotifyScanComplete(); |
44 void NotifyScanComplete(); |
45 void SetNotify(const RMessage2& aMessage); |
45 void SetNotify(const RMessage2& aMessage); |
46 void CancelNotify(); |
46 void CancelNotify(); |
47 void NotifyClients(TInt aReason); |
47 |
|
48 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
49 void NotifyClients(TInt aReason, CArrayFixFlat<TApaAppUpdateInfo>* aUpdatedAppsInfo); |
|
50 #else |
|
51 void NotifyClients(TInt aReason); |
|
52 #endif |
48 |
53 |
49 void NotifyClientForCompletionOfListPopulation(); |
54 void NotifyClientForCompletionOfListPopulation(); |
50 void CancelListPopulationCompleteObserver(); |
55 void CancelListPopulationCompleteObserver(); |
51 public: |
56 public: |
52 CApaAppData& FindAppInListL(TUid aUid); |
57 CApaAppData& FindAppInListL(TUid aUid); |
97 void IconFileNameL(const RMessage2& aMessage); |
102 void IconFileNameL(const RMessage2& aMessage); |
98 void ViewIconFileNameL(const RMessage2& aMessage); |
103 void ViewIconFileNameL(const RMessage2& aMessage); |
99 |
104 |
100 void ApplicationLanguageL(const RMessage2& aMessage); |
105 void ApplicationLanguageL(const RMessage2& aMessage); |
101 void SetAppShortCaptionL(const RMessage2& aMessage); |
106 void SetAppShortCaptionL(const RMessage2& aMessage); |
|
107 |
|
108 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
109 void UpdateAppListL(const RMessage2& aMessage); |
|
110 void UpdatedAppsInfoL(const RMessage2& aMessage); |
|
111 #endif |
102 private: |
112 private: |
103 static TInt NextDriveToScan(TInt aCurrentDrive); |
113 static TInt NextDriveToScan(TInt aCurrentDrive); |
104 static TBool AppIsControlPanelItem(const CApaAppData& aAppData); |
114 static TBool AppIsControlPanelItem(const CApaAppData& aAppData); |
105 TBool AppMatchesEmbeddabilityFilter(const CApaAppData& aAppData, const TApaEmbeddabilityFilter& aEmbeddabilityFilter) const; |
115 TBool AppMatchesEmbeddabilityFilter(const CApaAppData& aAppData, const TApaEmbeddabilityFilter& aEmbeddabilityFilter) const; |
106 TBool AppMatchesCapabilityAttrFilter(const CApaAppData& aAppData) const; |
116 TBool AppMatchesCapabilityAttrFilter(const CApaAppData& aAppData) const; |
118 TInt iFlags; |
128 TInt iFlags; |
119 CApaAppArcServer& iAppArcSrv; |
129 CApaAppArcServer& iAppArcSrv; |
120 CApaAppList& iAppList; |
130 CApaAppList& iAppList; |
121 RMessage2 iNotifyMessage; |
131 RMessage2 iNotifyMessage; |
122 RMessage2 iNotifyOnScanCompleteMsg; |
132 RMessage2 iNotifyOnScanCompleteMsg; |
|
133 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
123 CApsNonNativeApplicationsManager* iNonNativeApplicationsManager; |
134 CApsNonNativeApplicationsManager* iNonNativeApplicationsManager; |
|
135 #endif |
124 RMessage2 iCompletionOfListPopulationObserverMsg; |
136 RMessage2 iCompletionOfListPopulationObserverMsg; |
125 |
137 |
126 TAppListType iAppListType; |
138 TAppListType iAppListType; |
127 TInt iAppListScreenMode; |
139 TInt iAppListScreenMode; |
128 TApaEmbeddabilityFilter iEmbeddabilityFilter; |
140 TApaEmbeddabilityFilter iEmbeddabilityFilter; |
129 TUint iCapabilityAttrFilterMask; // contains bit flags from TCapabilityAttribute |
141 TUint iCapabilityAttrFilterMask; // contains bit flags from TCapabilityAttribute |
130 TUint iCapabilityAttrFilterValue; // contains bit flags from TCapabilityAttribute |
142 TUint iCapabilityAttrFilterValue; // contains bit flags from TCapabilityAttribute |
131 TUid iServiceUid; |
143 TUid iServiceUid; |
132 RPointerArray<CApaAppInfo> iApaAppInfoArray; //contains the most recent "snapshot" of the applist taken by GetNextAppL. |
144 RPointerArray<CApaAppInfo> iApaAppInfoArray; //contains the most recent "snapshot" of the applist taken by GetNextAppL. |
|
145 |
|
146 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
147 RArray<TApaAppUpdateInfo> iAppsUpdated; |
|
148 TBool iNotificationRequested; //If its true updated application information is maintained in session object. |
|
149 #endif |
133 }; |
150 }; |
134 |
151 |
135 |
152 |
136 class CApaAppArcServSession : public CSession2 |
153 class CApaAppArcServSession : public CSession2 |
137 { |
154 { |
141 ~CApaAppArcServSession(); |
158 ~CApaAppArcServSession(); |
142 //service request |
159 //service request |
143 virtual void ServiceL(const RMessage2 &aMessage); |
160 virtual void ServiceL(const RMessage2 &aMessage); |
144 |
161 |
145 void NotifyClientOfDataMappingChange(); |
162 void NotifyClientOfDataMappingChange(); |
146 void NotifyClients(TInt aReason); |
163 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
164 void NotifyClients(TInt aReason, CArrayFixFlat<TApaAppUpdateInfo>* aUpdatedAppsInfo); |
|
165 #else |
|
166 void NotifyClients(TInt aReason); |
|
167 #endif |
147 void NotifyScanComplete(); |
168 void NotifyScanComplete(); |
148 void NotifyClientForCompletionOfListPopulation(); |
169 void NotifyClientForCompletionOfListPopulation(); |
149 private: |
170 private: |
150 CApaAppArcServSession(CApaAppArcServer& aServer, RFs& aFs); |
171 CApaAppArcServSession(CApaAppArcServer& aServer, RFs& aFs); |
151 void ConstructL(); |
172 void ConstructL(); |
155 // Data recognition stuff |
176 // Data recognition stuff |
156 void RecognizeDataL(const RMessage2& aMessage); |
177 void RecognizeDataL(const RMessage2& aMessage); |
157 void RecognizeDataPassedByFileHandleL(const RMessage2& aMessage); |
178 void RecognizeDataPassedByFileHandleL(const RMessage2& aMessage); |
158 void RecognizeSpecificDataL(const RMessage2& aMessage); |
179 void RecognizeSpecificDataL(const RMessage2& aMessage); |
159 void RecognizeSpecificDataPassedByFileHandleL(const RMessage2& aMessage); |
180 void RecognizeSpecificDataPassedByFileHandleL(const RMessage2& aMessage); |
160 static TPtrC8 DoRecognizeUnpackLC(HBufC*& aName, RChunk& aLocalChunk, const RMessage2& aMessage); |
181 static TPtrC8 DoRecognizeUnpackLC(HBufC*& aName, RChunk& aLocalChunk, const RMessage2& aMessage); |
161 |
182 |
162 void AppForDataTypeL(const RMessage2& aMessage); |
183 void AppForDataTypeL(const RMessage2& aMessage); |
163 TUid AppForDataTypeL(const TDataType& aDataType, const TUid* aServiceUid); |
184 TUid AppForDataTypeL(const TDataType& aDataType, const TUid* aServiceUid); |
164 void AppForDocumentL(const RMessage2& aMessage, const TUid* aServiceUid); |
185 void AppForDocumentL(const RMessage2& aMessage, const TUid* aServiceUid); |
165 |
186 |
176 void GetAppServicesL(const RMessage2& aMessage); |
197 void GetAppServicesL(const RMessage2& aMessage); |
177 CBufBase* GetServiceBufferL(const RMessage2& aMessage) const; |
198 CBufBase* GetServiceBufferL(const RMessage2& aMessage) const; |
178 void AppForDataTypeAndServiceL(const RMessage2& aMessage); |
199 void AppForDataTypeAndServiceL(const RMessage2& aMessage); |
179 void AppForDocumentPassedByFileHandleL(const RMessage2& aMessage, const TUid* aServiceUid); |
200 void AppForDocumentPassedByFileHandleL(const RMessage2& aMessage, const TUid* aServiceUid); |
180 |
201 |
|
202 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
181 void RegisterNonNativeApplicationTypeL(const RMessage2& aMessage); |
203 void RegisterNonNativeApplicationTypeL(const RMessage2& aMessage); |
182 void DeregisterNonNativeApplicationTypeL(const RMessage2& aMessage); |
204 void DeregisterNonNativeApplicationTypeL(const RMessage2& aMessage); |
|
205 #endif |
183 |
206 |
184 void GetExecutableNameGivenDocumentL(const RMessage2& aMessage); |
207 void GetExecutableNameGivenDocumentL(const RMessage2& aMessage); |
185 void GetExecutableNameGivenDocumentPassedByFileHandleL(const RMessage2& aMessage); |
208 void GetExecutableNameGivenDocumentPassedByFileHandleL(const RMessage2& aMessage); |
186 void GetExecutableNameGivenDataTypeL(const RMessage2& aMessage); |
209 void GetExecutableNameGivenDataTypeL(const RMessage2& aMessage); |
187 void GetExecutableNameGivenAppUidL(const RMessage2& aMessage); |
210 void GetExecutableNameGivenAppUidL(const RMessage2& aMessage); |