appfw/apparchitecture/inc/APGCLI.H
branchRCL_3
changeset 62 924385140d98
parent 0 2e3d3ce01487
child 63 c2c61fdca848
equal deleted inserted replaced
58:0818dd463d41 62:924385140d98
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    21 #include <apmstd.h>
    21 #include <apmstd.h>
    22 #include <apmrec.h>
    22 #include <apmrec.h>
    23 #include <apaid.h>
    23 #include <apaid.h>
    24 #include <badesca.h>
    24 #include <badesca.h>
    25 #include <f32file.h>
    25 #include <f32file.h>
       
    26 
       
    27 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
    28 #include "apgupdate.h"
       
    29 //#include<usif/scr/scr.h>
       
    30 #include<usif/scr/appregentries.h>
       
    31 #endif
    26 
    32 
    27 // classes referenced
    33 // classes referenced
    28 class RFile;
    34 class RFile;
    29 class MArrayFiller;
    35 class MArrayFiller;
    30 class CApaCommandLine;
    36 class CApaCommandLine;
    62 private:
    68 private:
    63 	NONSHARABLE_CLASS(CItem);
    69 	NONSHARABLE_CLASS(CItem);
    64 	TFileName iPath;
    70 	TFileName iPath;
    65 	RPointerArray<CItem> iItems;
    71 	RPointerArray<CItem> iItems;
    66 	};
    72 	};
    67 
       
    68 
    73 
    69 /** A session with the application architecture server.
    74 /** A session with the application architecture server.
    70 
    75 
    71 The server provides access to a cached list of the applications on the device. 
    76 The server provides access to a cached list of the applications on the device. 
    72 
    77 
   232 	IMPORT_C void DeregisterNonNativeApplicationL(TUid aApplication);
   237 	IMPORT_C void DeregisterNonNativeApplicationL(TUid aApplication);
   233 	IMPORT_C void CommitNonNativeApplicationsUpdatesL();
   238 	IMPORT_C void CommitNonNativeApplicationsUpdatesL();
   234 	IMPORT_C TInt RollbackNonNativeApplicationsUpdates();
   239 	IMPORT_C TInt RollbackNonNativeApplicationsUpdates();
   235 	IMPORT_C TInt GetAppType(TUid& aTypeUid, TUid aAppUid) const;
   240 	IMPORT_C TInt GetAppType(TUid& aTypeUid, TUid aAppUid) const;
   236 	IMPORT_C TInt ForceRegistration(const RPointerArray<TDesC>& aRegFiles);
   241 	IMPORT_C TInt ForceRegistration(const RPointerArray<TDesC>& aRegFiles);
       
   242 	
   237 private: // Reserved for future use
   243 private: // Reserved for future use
   238 	IMPORT_C virtual void RApaLsSession_Reserved1();
   244 	IMPORT_C virtual void RApaLsSession_Reserved1();
   239 	IMPORT_C virtual void RApaLsSession_Reserved2();
   245 	IMPORT_C virtual void RApaLsSession_Reserved2();
   240 	
   246 	
   241 public:
   247 public:
   243 	@publishedPartner
   249 	@publishedPartner
   244 	@released
   250 	@released
   245 	*/
   251 	*/
   246 	IMPORT_C void ForceCommitNonNativeApplicationsUpdatesL(); 
   252 	IMPORT_C void ForceCommitNonNativeApplicationsUpdatesL(); 
   247 
   253 
       
   254 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   255 	IMPORT_C TInt UpdateAppListL(RArray<TApaAppUpdateInfo>& aAppUpdateInfo);
       
   256     IMPORT_C TInt ForceRegistration(const RPointerArray<Usif::CApplicationRegistrationData>& aForceRegAppsInfo);
       
   257     IMPORT_C TInt UpdatedAppsInfoL(RArray<TApaAppUpdateInfo>& aUpdatedApps);
       
   258 #endif
       
   259 	
   248 private:
   260 private:
   249 	void DoGetAppOwnedFilesL(CDesCArray& aArrayToFill, TUid aAppUid) const;
   261 	void DoGetAppOwnedFilesL(CDesCArray& aArrayToFill, TUid aAppUid) const;
   250 	void DoGetAppViewsL(CApaAppViewArray& aArrayToFill, TUid aAppUid) const;
   262 	void DoGetAppViewsL(CApaAppViewArray& aArrayToFill, TUid aAppUid) const;
   251 	void DoGetAppIconSizesL(TUid aAppUid, CArrayFixFlat<TSize>& aArrayToFill) const;
   263 	void DoGetAppIconSizesL(TUid aAppUid, CArrayFixFlat<TSize>& aArrayToFill) const;
   252 	TInt DoAppCount(TInt& aCount,TInt aCommand) const;
   264 	TInt DoAppCount(TInt& aCount,TInt aCommand) const;
   265 	TInt GetNewBufferFromFile(HBufC8*& aBuffer, const TDesC& aFileName) const;
   277 	TInt GetNewBufferFromFile(HBufC8*& aBuffer, const TDesC& aFileName) const;
   266 	TInt DoStartApp(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   278 	TInt DoStartApp(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   267 	void DoStartAppL(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   279 	void DoStartAppL(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   268 	static void GetMainThreadIdL(TThreadId& aThreadId, const RProcess& aProcess);
   280 	static void GetMainThreadIdL(TThreadId& aThreadId, const RProcess& aProcess);
   269 	static void DeletePointerToPointerToTAny(TAny* aPointerToPointerToTAny);
   281 	static void DeletePointerToPointerToTAny(TAny* aPointerToPointerToTAny);
       
   282 	
       
   283 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK 	
   270 	static CBufFlat* CreateRegFilesBufferL(const RPointerArray<TDesC>& aRegFiles);
   284 	static CBufFlat* CreateRegFilesBufferL(const RPointerArray<TDesC>& aRegFiles);
       
   285 #endif
       
   286 	
   271 	static void CleanupOperation(TAny* aAny);
   287 	static void CleanupOperation(TAny* aAny);
   272 
   288 
       
   289 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   290 	CBufFlat* CreateAppUpdateInfoBufferL(RArray<TApaAppUpdateInfo>& aAppUpdateInfo);
       
   291 	CBufFlat* CreateForceRegAppInfoBufferL(const RPointerArray<Usif::CApplicationRegistrationData>& aForceRegAppsInfo);	
       
   292 #endif
   273 private: // data
   293 private: // data
   274 	friend class CApaLsSessionExtension;
   294 	friend class CApaLsSessionExtension;
   275 	CApaLsSessionExtension* iExtension;
   295 	CApaLsSessionExtension* iExtension;
   276 	};
   296 	};
   277 
   297