inc/DRMHelperCommon.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2002 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:  common file for both client and server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef DRMHELPERCOMMON_H
       
    21 #define DRMHELPERCOMMON_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 //server name
       
    29 _LIT(KDRMHelperServerName,"CDRMHelperServer");
       
    30 _LIT( KDRMHSServerFileName , "DRMHelperServer" );
       
    31 _LIT(KDRMHelperServerSemaphoreName, "DRMHelperServerSemaphore");
       
    32 _LIT(KNullDate,"00000000:000000.000000");
       
    33 //interval for not endtime based rights
       
    34 const TInt KTimeIntervalYears = 10;
       
    35 
       
    36 //default value of informing interval
       
    37 const TInt KAboutToExpireInterval = 7;
       
    38 
       
    39 //the server version. A version must be specified when 
       
    40 //creating a session with the server
       
    41 const TUint KDRMHSMajorVersionNumber=0;
       
    42 const TUint KDRMHSMinorVersionNumber=1;
       
    43 const TUint KDRMHSBuildVersionNumber=1;
       
    44 
       
    45 
       
    46 // MACROS
       
    47 
       
    48 // DATA TYPES
       
    49 
       
    50 //opcodes used in message passing between client and server
       
    51 enum TDRMHelperServRqst
       
    52     {
       
    53     ERegister,
       
    54     ERemove,
       
    55     EIndicateIdle,
       
    56     EIsRegistered,
       
    57     };
       
    58 
       
    59 
       
    60 /** Panic Category */
       
    61 _LIT( KDRMHSServer, "CDRMHelperServer" );
       
    62 
       
    63 /**  panic codes */
       
    64 enum TDRMHelperServPanic
       
    65     {
       
    66     EBadDescriptor,
       
    67     ESrvCreateServer,
       
    68     ECreateTrapCleanup
       
    69     };
       
    70 
       
    71 // FUNCTION PROTOTYPES
       
    72 
       
    73 // FORWARD DECLARATIONS
       
    74 
       
    75 // CLASS DECLARATION
       
    76 
       
    77 
       
    78 
       
    79 #endif      // DRMHELPERCOMMON_H
       
    80             
       
    81 // End of File