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