syncmlfw/common/sosserver/inc/nsmlsosserverdefs.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Engine server constants definition. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __NSMLSOSSERVERDEFS_H__
       
    20 #define __NSMLSOSSERVERDEFS_H__
       
    21 
       
    22 _LIT( KServerNameAndDir, "Z:\\sys\\bin\\nsmlsosserver.exe");
       
    23 _LIT( KServerDir, "Z:\\sys\\bin\\");
       
    24 _LIT( KServerExeName, "nsmlsosserver.exe");
       
    25 
       
    26 _LIT(KSOSServerName,"SymbianOSServer");
       
    27 _LIT(KSOSServerThread,"SOSServer");
       
    28 
       
    29 _LIT(KNSmlLaunch,"NSmlLaunch");
       
    30 _LIT(KSmlDMAgentLoaderLibName, "nsmldmagent.dll");
       
    31 _LIT(KSmlDSAgentLoaderLibName, "nsmldsagent.dll");
       
    32 
       
    33 _LIT( KNSmlSOSServerMutexName, "NSmlSOSServerMutex" );
       
    34 
       
    35 const TInt KNSmlSOSServerVersionMinor = 0;
       
    36 const TInt KNSmlSOSServerVersionMajor = 1;
       
    37 
       
    38 const TInt KDefaultNSmlBufferGranularity = 500;
       
    39 const TInt KSizeofTInt32 = sizeof(TInt32);
       
    40 const TInt KSizeofTInt8 = sizeof(TInt8);
       
    41 const TInt KMaxIAPCount = 4;
       
    42 const TInt KBufferGranularity = 500;
       
    43 const TInt KMaxArrayCount = 10;
       
    44 const TInt KMaxJobDataSize = 64;
       
    45 
       
    46 const TInt KNotifierTimeout = 300000000; // 5 min timeout
       
    47 
       
    48 const TUint KDefaultHeapSize=0x400000;
       
    49 const TUint KNSmlSOSServerStackSize=0x3000;
       
    50 
       
    51 const TUid KUidNotifier = { 0x101F8769 };
       
    52 const TUid KUidDMServer = { 0x101F9A02 }; // nsmldmhostserver1
       
    53 const TUid KUidWAPPush  = { 0x00000001 }; // NOT KNOWN YET
       
    54 const TUid KUidSRCS     = { 0x101F7C87 };
       
    55 const TUid KUidDmFotaServer = { 0x102072C4  }; // fotaserver
       
    56 
       
    57 enum TNSmlRequestType
       
    58     {
       
    59     ENSmlTypeEvent,
       
    60     ENSmlTypeProgressEvent
       
    61     };
       
    62 
       
    63 enum TNSmlProgressEventType
       
    64     {
       
    65     ENSmlSyncError,
       
    66     ENSmlSyncProgress,
       
    67     ENSmlModifications
       
    68     };
       
    69 
       
    70 enum TNSmlCommands
       
    71     {
       
    72     ECmdEventRequest,
       
    73     ECmdEventRequestCancel,
       
    74     ECmdProgressRequest,
       
    75     ECmdProgressRequestCancel,
       
    76     ECmdJobListCurrent,
       
    77     ECmdJobListStart,
       
    78     ECmdJobListNext,
       
    79     ECmdProfileListStart,
       
    80     ECmdProfileListNext,
       
    81     ECmdProfileDelete,
       
    82     ECmdProfileCreateDS, 
       
    83     ECmdProfileCreateDM, 
       
    84     ECmdProfileOpenDS,   
       
    85     ECmdProfileOpenDM,   
       
    86     ECmdProfileGet,
       
    87     ECmdProfileSet,
       
    88     ECmdProfileClose,
       
    89     ECmdTaskListStart,
       
    90     ECmdTaskListNext,
       
    91     ECmdTaskDelete,
       
    92     ECmdConnList,
       
    93     ECmdConnCreate, 
       
    94     ECmdConnOpen, 
       
    95     ECmdConnGet,
       
    96     ECmdConnSet,
       
    97     ECmdConnClose, 
       
    98     ECmdCreateTask,
       
    99     ECmdTaskOpen, 
       
   100     ECmdTaskGet,
       
   101     ECmdTaskFilterBufferSize,
       
   102     ECmdTaskSupportedFilters,
       
   103     ECmdTaskSet,
       
   104     ECmdTaskClose, 
       
   105     ECmdDataSyncJobCreateForProfile, 
       
   106     ECmdDataSyncJobCreateForProfileST, 
       
   107     ECmdDataSyncJobCreateForTasks, 
       
   108     ECmdDataSyncJobCreateForTasksST, 
       
   109     ECmdDataSyncJobCreateForTransport, 
       
   110     ECmdDataSyncJobCreateForTransportST, 
       
   111     ECmdDataSyncJobCreateForTransportAndTasks,
       
   112     ECmdDataSyncJobCreateForTransportAndTasksST, 
       
   113     ECmdDevManJobCreate, 
       
   114     ECmdDevManJobCreateForTransport, 
       
   115     ECmdJobOpen,  
       
   116     ECmdJobGet,
       
   117     ECmdJobStop, 
       
   118     ECmdJobClose, 
       
   119     ECmdHistoryLogOpen, 
       
   120     ECmdHistoryLogGet,
       
   121     ECmdHistoryLogReset,
       
   122     ECmdHistoryLogClose, 
       
   123     ECmdDataProviderOpen, 
       
   124     ECmdDataProviderGet,
       
   125     ECmdDataProviderClose, 
       
   126     ECmdServerAlert,
       
   127     ECmdInitDMAuthInfo,
       
   128     ECmdGetDMAuthInfo,
       
   129     ECmdSetDMAuthInfo,
       
   130     // FOTA
       
   131     ECmdAddDMGenericAlert,
       
   132     // FOTA end
       
   133     // SCOMO
       
   134     ECmdAddGenericAlert,
       
   135     // SCOMO End
       
   136 	ECmdContactSuiteProgressRequest,
       
   137 	ECmdContactSuiteProgressRequestCancel,
       
   138 	ECmdContactSuiteRegisterObserversWithProfileId
       
   139     };
       
   140 
       
   141 enum TNSmlJobType
       
   142     {
       
   143     EDSJobProfile,
       
   144     EDSJobProfileST,
       
   145     EDSJobTasks,
       
   146     EDSJobTasksST,
       
   147     EDSJobTransport,
       
   148     EDSJobTransportST,
       
   149     EDSJobTaskTrans,
       
   150     EDSJobTaskTransST,
       
   151     EDMJobProfile,
       
   152     EDMJobTransport
       
   153     };
       
   154 
       
   155 #endif