installationservices/swcomponentregistry/inc/scrcommon.h
changeset 25 98b66e4fb0be
parent 24 84a16765cd86
--- a/installationservices/swcomponentregistry/inc/scrcommon.h	Fri Mar 19 09:33:35 2010 +0200
+++ b/installationservices/swcomponentregistry/inc/scrcommon.h	Fri Apr 16 15:05:20 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -116,12 +116,22 @@
 		EGetComponentSupportedLocalesListData = 0x31,    ///< Retrieve the data of the list of matching supported languages
 		EGetLocalizedComponentSize            = 0x32,    ///< Retrieve the localized information entry size of a given component id
 		EGetLocalizedComponentData            = 0x33,    ///< Retrieve the localized information entry data of a given component id
+		EGenerateNonNativeAppUid              = 0x34,    ///< Generate a new Application Uid which can be used to register non native applications.
 		
-		EGetIsMediaPresent				 = 0x41,	///< Retrieve the presence info of medias where the component is installed.
-		EGetIsComponentOrphaned			 = 0x42,	///< Retrieve whether the given component is orphaned.
-		EGetIsComponentOnReadOnlyDrive	 = 0x43,	///< Retrieve if the component is present on a read-only drive.
-		EGetIsComponentPresent			 = 0x44,	///< Retrieve if the software component is fully present.
+        EGetApplicationLaunchersSize     = 0x3A,    ///< Gets the size of application launcher array
+        EGetApplicationLaunchersData     = 0x3B,    ///< Gets the array application launchers
+        
+		EGetIsMediaPresent				 = 0x40,	///< Retrieve the presence info of medias where the component is installed.
+		EGetIsComponentOrphaned			 = 0x41,	///< Retrieve whether the given component is orphaned.
+		EGetIsComponentOnReadOnlyDrive	 = 0x42,	///< Retrieve if the component is present on a read-only drive.
+		EGetIsComponentPresent			 = 0x43,	///< Retrieve if the software component is fully present.
+        EGetComponentIdForApp            = 0x44,    ///< Retrieve the component Id for a given App.
+        EGetAppUidsForComponentSize      = 0x45,    ///< Retrieve the size of the list of AppUids associated with a component.
+        EGetAppUidsForComponentData      = 0x46,    ///< Retrieve the list of AppUids associated with a component.
 						
+		EAddApplicationEntry             = 0x47,    ///< Add a new application entry into SCR.
+		EDeleteApplicationEntries        = 0x48,    ///< Delete the applications associated with a component from SCR.
+		EDeleteApplicationEntry          = 0x49,    ///< Delete an application from SCR.
 		ESetScomoState				 	 = 0x50,	///< Set the scomo state of a given component.
 		ESetIsComponentPresent			 = 0x51,	///< Set the attribute if the component is present fully.
 		EGetPluginUidWithMimeType    	 = 0x52,	///< Retrieve the SIF plugin UID for a given MIME type.
@@ -129,15 +139,22 @@
 		
 		ESubSessCreateComponentsView 	 = 0x60,	///< Creates a sub-session to handle a components view. 
 		ESubSessCreateFileList 	     	 = 0x61,	///< Creates a sub-session to handle a file list.
+
+		ESubSessCreateRegInfoForApp      = 0x62,	///< Creates a sub-session to handle a App ID related query.
+		ESubSessCreateAppRegInfo         = 0x63,   ///< Creates a sub-session to handle a query.
 		
 		EAddSoftwareType			 	 = 0x65,    ///< Add a new software type to the SCR database with MIME types, unique and localized names.
 		EDeleteSoftwareType			 	 = 0x66,    ///< Delete an existing software type from the SCR database.
 		EGetDeletedMimeTypes			 = 0x67,    ///< Retrieve the list of MIME types deleted in last software type deletion operation.
+		
+		ESubSessCreateAppInfoView        = 0x68,    ///< Creates a sub-session to handle a appinfo view.
+		ESubSessCreateAppRegistryView    = 0x69     ///< Creates a sub-session to handle a application registration view.
+		// NOTE: The range after this is used up. Add new function ids carefully.
 		};
 		
 	enum TScrSubSessionFunction
 	/**
-		Functions supported by a SCR server session.
+		Functions supported by a SCR server subsession.
 	 */
 		{
 		EOpenComponentsView       = 0x70,		///< A components view isopened on the server side by using a given filter
@@ -149,7 +166,34 @@
 		EGetNextFileSize      	  = 0x78,		///< Get the size of the next file from the present file list.
 		EGetNextFileData      	  = 0x79,		///< Get the next file from the present file list.
 		EGetNextFileSetSize   	  = 0x7A,		///< Get teh size of the next file set from the present file list.
-		EGetNextFileSetData       = 0x7B		///< Get the next file set from the present file list.
+		EGetNextFileSetData       = 0x7B,		///< Get the next file set from the present file list.
+		EOpenAppInfoView          = 0x7C,       ///< An AppInfo view is opened on the server side by using a given filter
+		EGetNextAppInfoSize       = 0x7D,       ///< Next AppInfo size is calculated and sent to the client
+		EGetNextAppInfoData       = 0x7E,       ///< Next AppInfo data is returned to the client  
+		
+		ESetAppUid         		      = 0x80,       ///< AppId is set on the server side to be used for the specific subsession.
+		EGetServiceUidSize		      = 0x88,       ///< Get the size of the service Id list. 
+		EGetServiceUidList		      = 0x89,       ///< Get the list of ServiceIds.
+		EGetApplicationLanguage       = 0x8A,		///< Get the Application Language of the App and is nearest to the device language.
+		EGetDefaultScreenNumber       = 0x8B,       ///< Get the Default screen number specified for an App.
+		EGetNumberOfOwnDefinedIcons   = 0x8C,       ///< Get the number of defined icons of a specified locale of the App.
+		EGetAppForDataTypeAndService  = 0x8D,       ///< Get the AppUid with the specified type and ServiceId		
+		EGetAppForDataType	   	      = 0x8E,	    ///< Get the AppUid with the specified type and a highest priority.
+		EGetViewSize			      = 0x8F,		///< Get the size of the view details of a given application
+		EGetViewData			      = 0x90,		///< Get the array of view details of a given application
+		EGetAppOwnedFilesSize         = 0x91,       ///< Get the size of files owned by given application
+		EGetAppOwnedFilesData         = 0x92,       ///< Get the array of files owned by given application
+		EGetAppCharacteristics        = 0x93,       ///< Get the characteristics of given application
+		EGetAppIconForFileName    	  = 0x94,       ///< Get the application icon file name for given application
+		EGetAppViewIconFileName       = 0x95,       ///< Get the application view  icon file name for given application
+		EGetAppServiceInfoSize		  = 0x96,		///< Get the size of the required service details associated with the parameters set in the filter.
+		EGetAppServiceInfoData        = 0x97,       ///< Get the required service details associated with the parameters set in the filter.
+		EGetApplicationInfo           = 0x98,       ///< Get the required app's information details contained in TAppRegInfo.
+				
+		EOpenApplicationRegistrationInfoView           = 0xB0,  ///< An Application registration view is opened on the server side
+		EGetApplicationRegistrationSize                = 0xB1,  ///< Get the size of the next application registration data
+		EGetApplicationRegistrationData                = 0xB2,  ///< Get the next application registration data
+		EOpenApplicationRegistrationInfoForAppUidsView = 0xB3,  ///< An Application registration AppUids view is opened on the server side
 		};
 	
 	/**
@@ -159,8 +203,7 @@
 	static const TInt KScrServerShutdownPeriod = 2 * 1000 * 1000;
 	
 	/** Maximum length of a UID string. */
-	static const TInt KUidStringLen = 8;
-	
+	static const TInt KUidStringLen = 8;	
 	} // End of namespace Usif
  
  #include <usif/scr/scrcommon.inl>