appfw/apparchitecture/inc/APGCLI.H
branchRCL_3
changeset 63 c2c61fdca848
parent 62 924385140d98
equal deleted inserted replaced
62:924385140d98 63:c2c61fdca848
     1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2009 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
       
    32 
    26 
    33 // classes referenced
    27 // classes referenced
    34 class RFile;
    28 class RFile;
    35 class MArrayFiller;
    29 class MArrayFiller;
    36 class CApaCommandLine;
    30 class CApaCommandLine;
    68 private:
    62 private:
    69 	NONSHARABLE_CLASS(CItem);
    63 	NONSHARABLE_CLASS(CItem);
    70 	TFileName iPath;
    64 	TFileName iPath;
    71 	RPointerArray<CItem> iItems;
    65 	RPointerArray<CItem> iItems;
    72 	};
    66 	};
       
    67 
    73 
    68 
    74 /** A session with the application architecture server.
    69 /** A session with the application architecture server.
    75 
    70 
    76 The server provides access to a cached list of the applications on the device. 
    71 The server provides access to a cached list of the applications on the device. 
    77 
    72 
   237 	IMPORT_C void DeregisterNonNativeApplicationL(TUid aApplication);
   232 	IMPORT_C void DeregisterNonNativeApplicationL(TUid aApplication);
   238 	IMPORT_C void CommitNonNativeApplicationsUpdatesL();
   233 	IMPORT_C void CommitNonNativeApplicationsUpdatesL();
   239 	IMPORT_C TInt RollbackNonNativeApplicationsUpdates();
   234 	IMPORT_C TInt RollbackNonNativeApplicationsUpdates();
   240 	IMPORT_C TInt GetAppType(TUid& aTypeUid, TUid aAppUid) const;
   235 	IMPORT_C TInt GetAppType(TUid& aTypeUid, TUid aAppUid) const;
   241 	IMPORT_C TInt ForceRegistration(const RPointerArray<TDesC>& aRegFiles);
   236 	IMPORT_C TInt ForceRegistration(const RPointerArray<TDesC>& aRegFiles);
   242 	
       
   243 private: // Reserved for future use
   237 private: // Reserved for future use
   244 	IMPORT_C virtual void RApaLsSession_Reserved1();
   238 	IMPORT_C virtual void RApaLsSession_Reserved1();
   245 	IMPORT_C virtual void RApaLsSession_Reserved2();
   239 	IMPORT_C virtual void RApaLsSession_Reserved2();
   246 	
   240 	
   247 public:
   241 public:
   249 	@publishedPartner
   243 	@publishedPartner
   250 	@released
   244 	@released
   251 	*/
   245 	*/
   252 	IMPORT_C void ForceCommitNonNativeApplicationsUpdatesL(); 
   246 	IMPORT_C void ForceCommitNonNativeApplicationsUpdatesL(); 
   253 
   247 
   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 	
       
   260 private:
   248 private:
   261 	void DoGetAppOwnedFilesL(CDesCArray& aArrayToFill, TUid aAppUid) const;
   249 	void DoGetAppOwnedFilesL(CDesCArray& aArrayToFill, TUid aAppUid) const;
   262 	void DoGetAppViewsL(CApaAppViewArray& aArrayToFill, TUid aAppUid) const;
   250 	void DoGetAppViewsL(CApaAppViewArray& aArrayToFill, TUid aAppUid) const;
   263 	void DoGetAppIconSizesL(TUid aAppUid, CArrayFixFlat<TSize>& aArrayToFill) const;
   251 	void DoGetAppIconSizesL(TUid aAppUid, CArrayFixFlat<TSize>& aArrayToFill) const;
   264 	TInt DoAppCount(TInt& aCount,TInt aCommand) const;
   252 	TInt DoAppCount(TInt& aCount,TInt aCommand) const;
   277 	TInt GetNewBufferFromFile(HBufC8*& aBuffer, const TDesC& aFileName) const;
   265 	TInt GetNewBufferFromFile(HBufC8*& aBuffer, const TDesC& aFileName) const;
   278 	TInt DoStartApp(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   266 	TInt DoStartApp(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   279 	void DoStartAppL(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   267 	void DoStartAppL(const CApaCommandLine& aCommandLine, TThreadId* aThreadId, TRequestStatus* aRequestStatusForRendezvous);
   280 	static void GetMainThreadIdL(TThreadId& aThreadId, const RProcess& aProcess);
   268 	static void GetMainThreadIdL(TThreadId& aThreadId, const RProcess& aProcess);
   281 	static void DeletePointerToPointerToTAny(TAny* aPointerToPointerToTAny);
   269 	static void DeletePointerToPointerToTAny(TAny* aPointerToPointerToTAny);
   282 	
       
   283 #ifndef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK 	
       
   284 	static CBufFlat* CreateRegFilesBufferL(const RPointerArray<TDesC>& aRegFiles);
   270 	static CBufFlat* CreateRegFilesBufferL(const RPointerArray<TDesC>& aRegFiles);
   285 #endif
       
   286 	
       
   287 	static void CleanupOperation(TAny* aAny);
   271 	static void CleanupOperation(TAny* aAny);
   288 
   272 
   289 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK
       
   290 	CBufFlat* CreateAppUpdateInfoBufferL(RArray<TApaAppUpdateInfo>& aAppUpdateInfo);
       
   291 	CBufFlat* CreateForceRegAppInfoBufferL(const RPointerArray<Usif::CApplicationRegistrationData>& aForceRegAppsInfo);	
       
   292 #endif
       
   293 private: // data
   273 private: // data
   294 	friend class CApaLsSessionExtension;
   274 	friend class CApaLsSessionExtension;
   295 	CApaLsSessionExtension* iExtension;
   275 	CApaLsSessionExtension* iExtension;
   296 	};
   276 	};
   297 
   277