appfw/apparchitecture/apserv/APSCLSV.H
changeset 0 2e3d3ce01487
child 29 6a787171e1de
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // apsclsv.h
       
    15 //
       
    16 
       
    17 #ifndef __APGCLSV_H__
       
    18 #define __APGCLSV_H__
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <apaid.h>
       
    22 #include <apmstd.h>
       
    23 
       
    24 // A version must be specifyed when creating a session with the server
       
    25 const TUint KAppListServMajorVersionNumber=7;
       
    26 const TUint KAppListServMinorVersionNumber=1;
       
    27 const TUint KAppListServBuildVersionNumber=117;
       
    28 
       
    29 enum TAppListServRanges
       
    30 	{
       
    31 	EFirstUnrestrictedOpcodeInAppListServ,
       
    32 	EFirstOpcodeNeedingWriteDeviceDataInAppListServ=100,
       
    33 	};
       
    34 
       
    35 // opcodes used in message passing between client and server
       
    36 enum TCountServRqst
       
    37 	{
       
    38 	//No Capability requirement
       
    39 	EAppListServFirst = EFirstUnrestrictedOpcodeInAppListServ,	// = 0
       
    40 	EAppListServInitFullList,
       
    41 	EAppListServInitEmbedList,
       
    42 	EAppListServGetNextApp,
       
    43 	EAppListServEmbedCount,
       
    44 	EAppListServAppCount,
       
    45 	EAppListServGetAppInfo,
       
    46 	EAppListServGetAppCapability,
       
    47 	EAppListServStartAppWithoutReturningThreadId,	// deprecated
       
    48 	EAppListServStartAppReturningThreadId,			// deprecated
       
    49 	EAppListServRecognizeData,	// = 10
       
    50 	EAppListServRecognizeDataPassedByFileHandle,
       
    51 	EAppListServRecognizeSpecificData,
       
    52 	EAppListServRecognizeSpecificDataPassedByFileHandle,
       
    53 	EAppListServAppForDataType,
       
    54 	EAppListServStartDocument,						// deprecated
       
    55 	EAppListServStartDocumentByDataType,			// deprecated
       
    56 	EAppListServStartDocumentByUid,					// deprecated
       
    57 	EAppListServCreateDocumentByUid,				// deprecated
       
    58 	EAppListServGetExecutableNameGivenDocument,
       
    59 	EAppListServGetExecutableNameGivenDocumentPassedByFileHandle,	// = 20
       
    60 	EAppListServGetExecutableNameGivenDataType,
       
    61 	EAppListServGetExecutableNameGivenAppUid,
       
    62 	EAppListServGetOpaqueData,
       
    63 	EAppListServGetNativeExecutableNameIfNonNative,
       
    64 	EAppListServAppIconByUid,
       
    65 	EAppListServAppForDocument,
       
    66 	EAppListServAppForDocumentPassedByFileHandle,
       
    67 	EAppListServGetConfidence,
       
    68 	EAppListServGetBufSize,
       
    69 	EAppListServSetBufSize,	// = 30
       
    70 	EAppListServGetDataTypesPhase1,
       
    71 	EAppListServGetDataTypesPhase2,
       
    72 	ESetNotify,
       
    73 	ECancelNotify,
       
    74 	EDCloseServer,
       
    75 	EAppListServAppIconByUidAndSize,
       
    76 	EAppListServGetAppIconSizes,
       
    77 	EAppListServGetAppViews,
       
    78 	EAppListServViewIconByUidAndSize,
       
    79 	EAppListServGetFileOwnershipInfo,	// = 40
       
    80 	EAppListServNumberOfOwnDefinedIcons,
       
    81 	EAppListServInitFilteredEmbedList,
       
    82 	EAppListServInitAttrFilteredList,
       
    83 	EAppListServAppIconFileName,
       
    84 	EAppListServAppViewIconFileName,
       
    85 	EAppListServInitServerAppList,
       
    86 	EAppListServGetAppServices,
       
    87 	EAppListServGetServiceImplementations,
       
    88 	EAppListServGetServiceImplementationsDataType,
       
    89 	EAppListServGetAppServiceUids,	// = 50
       
    90 	EAppListServGetAppServiceOpaqueData,
       
    91 	EAppListServAppForDataTypeAndService,
       
    92 	EAppListServAppForDocumentAndService,
       
    93 	EAppListServAppForDocumentAndServicePassedByFileHandle,
       
    94 	EAppListServApplicationLanguage,
       
    95 	ERegisterListPopulationCompleteObserver,
       
    96 	ECancelListPopulationCompleteObserver,
       
    97 	EAppListServPreferredBufSize,
       
    98 	EAppListServRecognizeFiles,
       
    99 	EAppListServRecognizeFilesAsync,	// = 60
       
   100 	ECancelRecognizeFiles,
       
   101 	EAppListServTransferRecognitionResult,
       
   102 	EAppListServGetAppByDataType,
       
   103 	EAppListServGetDefaultScreenNumber,
       
   104 	EAppListServRuleBasedLaunching,
       
   105 	EAppListServRegisterNonNativeApplicationType,
       
   106 	EAppListServDeregisterNonNativeApplicationType,
       
   107 	EAppListServPrepareNonNativeApplicationsUpdates,
       
   108 	EAppListServRegisterNonNativeApplication,
       
   109 	EAppListServDeregisterNonNativeApplication,	// = 70
       
   110 	EAppListServCommitNonNativeApplications,
       
   111 	EAppListServRollbackNonNativeApplications,
       
   112 	EAppListServGetAppType,
       
   113 	ENotifyOnDataMappingChange,
       
   114 	ECancelNotifyOnDataMappingChange,
       
   115 	EMatchesSecurityPolicy,
       
   116 	EAppListServSetAppShortCaption,
       
   117 	EAppListServForceRegistration,
       
   118 	EDebugHeapMark,
       
   119 	EDebugHeapMarkEnd,	// = 80
       
   120 	EDebugHeapFailNext,
       
   121 	EDebugClearAppInfoArray,
       
   122 	EDebugFlushRecognitionCache,
       
   123 	EDebugSetLoadRecognizersOnDemand,
       
   124 	EDebugPerformOutstandingRecognizerUnloading,
       
   125 	EAppListServAppIconFileHandle,
       
   126 	EDebugAddFailingNonNativeApplicationsUpdate,
       
   127 	EDebugAddPanicingNonNativeApplicationsUpdate,
       
   128 	EDebugAddRollbackPanicingNonNativeApplicationsUpdate, // = 89
       
   129 	EAppListServAppInfoProvidedByRegistrationFile = 99,	// = 99
       
   130 	//WriteDeviceData Capability requirement
       
   131 	// ER5
       
   132 	EAppListServSetConfidence=EFirstOpcodeNeedingWriteDeviceDataInAppListServ,	// = 100
       
   133 	// 8.1
       
   134 	EAppListInsertDataMapping,
       
   135 	EAppListInsertDataMappingIfHigher,
       
   136 	EAppListDeleteDataMapping,
       
   137 	// End Marker no Capability
       
   138 	EAppListFirstUnusedOpcode,
       
   139  	};
       
   140 
       
   141 
       
   142 enum TApaClientPanic
       
   143 	{
       
   144 	EClientBadRequest,
       
   145 	EClientBadDescriptor,
       
   146 	ENotifierAlreadyPresent,
       
   147 	ENoSupportedDataTypes,
       
   148 	EObserverAlreadyPresent,
       
   149 	ENotifyOnDataMappingChangeRequestOutstanding
       
   150 #if defined(UI_FRAMEWORKS_V1_REMNANT_FOR_JAVA_MIDLET_INSTALLER)
       
   151 	,EInvalidFileName
       
   152 #endif
       
   153 	};
       
   154 
       
   155 
       
   156 struct SReturnData_AppForDocument
       
   157 	{
       
   158 	TUid iUid;
       
   159 	TDataType iDataType;
       
   160 	};
       
   161 
       
   162 struct SReturnData_AppIconByUid
       
   163 	{
       
   164 	TInt iIcon;
       
   165 	TInt iIconMask;
       
   166 	};
       
   167 
       
   168 struct SReturnData_AppIconByUidAndSize
       
   169 	{
       
   170 	TInt iIcon;
       
   171 	TInt iIconMask;
       
   172 	};
       
   173 
       
   174 struct SReturnData_ViewIconByUidAndSize
       
   175 	{
       
   176 	TInt iIcon;
       
   177 	TInt iIconMask;
       
   178 	};
       
   179 
       
   180 struct SNonNativeApplicationInfo
       
   181 	{
       
   182 	TUid iApplicationType;
       
   183 	TInt iDrive;
       
   184 	};
       
   185 
       
   186 #endif	// __APGCLSV_H__