mtpdataproviders/mtpimagedp/mediasyncserver/inc/cmediasyncserverdef.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 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 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef CMEDIASYNCSERVERDEF_H
       
    22 #define CMEDIASYNCSERVERDEF_H
       
    23 
       
    24 #include <comms-infras/commsdebugutility.h>
       
    25 
       
    26 __FLOG_STMT(_LIT8(KMSSSubsystem, "MSS");)
       
    27 
       
    28 _LIT(KFinderMSSName, "mediasyncserver*");
       
    29 _LIT(KMediaSyncServerName, "mediasyncserver");
       
    30  
       
    31 _LIT(KMssDbName, "mediasync.db");
       
    32 _LIT(KImageTableName, "ImageStore");
       
    33 _LIT(KSQLCombinedIndex, "CombinedIndex");
       
    34 _LIT(KMssLockName, "mss.lock");
       
    35 
       
    36 _LIT(KMediaSyncClientPanicCategory, "MediaSyncServ-Client");
       
    37 
       
    38 // MIME definition
       
    39 _LIT(KJpegMime, "image/jpeg");
       
    40 
       
    41 const TInt KCustomSqlMaxLength = 512;
       
    42 
       
    43 const TInt KMediaSyncServerVersionMinor = 0;
       
    44 const TInt KMediaSyncServerVersionMajor = 1;
       
    45 
       
    46 /**
       
    47 The Media Sync Server process UID3.
       
    48 */
       
    49 const TUid KMediaSyncServerUid3 = {0x20024331};
       
    50 
       
    51 enum TMediaSyncPanicsClient
       
    52     {
       
    53     ECannotStartServer,
       
    54     EBadRequest,
       
    55     ERequestPending
       
    56     };
       
    57 
       
    58 enum TMediaSyncClientMessage 
       
    59     {
       
    60     EMediaSyncClientGetGSHHandle,
       
    61     EMediaSyncClientGetChanges,    
       
    62     EMediaSyncClientRemoveAllRecords,
       
    63     EMediaSyncClientEnableMonitor,
       
    64     EMediaSyncClientDisableMonitor,
       
    65     EMediaSyncClientNeedFullSync,
       
    66     EMediaSyncClientClearFullSync,
       
    67     EMediaSyncClientShutdown,
       
    68     EMediaSyncClientNotSupported
       
    69     };
       
    70 
       
    71 const TUint KMssRemoval     = 1;
       
    72 const TUint KMssAddition    = 2;
       
    73 const TUint KMssChange      = 3;
       
    74 const TUint KMssPresent     = 4;
       
    75 const TUint KMssNotPresent  = 5;
       
    76 
       
    77 class TDataHeaderInfo
       
    78     {
       
    79 public:
       
    80     TInt iCount;
       
    81     };
       
    82 
       
    83 #endif /* CMEDIASYNCSERVERDEF_H */