omadrm/drmengine/server/inc/drmroapclientserver.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2005-2008 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:  Client/server interface of ROAP server
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DRMROAPCLIENTSERVER_H
       
    20 #define DRMROAPCLIENTSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32def.h>
       
    24 
       
    25 
       
    26 
       
    27 _LIT( KRIContextFile, "c:\\private\\101F51F2\\ricontexts.dat" );
       
    28 _LIT( KDomainContextFile, "c:\\private\\101F51F2\\domaincontexts.dat" );
       
    29 
       
    30 
       
    31 
       
    32 namespace Roap
       
    33     {
       
    34     const TUint8 KServerMajorVersion = 5;
       
    35     const TUint8 KServerMinorVersion = 0;
       
    36     const TUint16 KServerBuildVersion = 1;
       
    37 
       
    38     _LIT( KServerName, "!RoapStorageServer" );
       
    39 
       
    40     enum TRoapStorageCommand
       
    41         {
       
    42         EAddRiContext = 0x01,
       
    43         EAddDomainContext = 0x02,
       
    44         EGetRiContext = 0x03,
       
    45         EGetDomainContext = 0x04,
       
    46         EGetData = 0x05,
       
    47         EDeleteRiContext = 0x06,
       
    48         EDeleteDomainContext = 0x07,
       
    49         EDeleteExpiredRIs = 0x08,
       
    50         EDeleteExpiredDomains = 0x09,
       
    51         EWhiteListCheck = 0x10,
       
    52         EGetPublicKey = 0x11,
       
    53         EGetCertificates = 0x12,
       
    54         ESignMessage = 0x13,
       
    55         ESelectRoot = 0x14,
       
    56         EActivateRoot = 0x15,
       
    57         EGetTrustedRoots = 0x16,
       
    58         EGetRootCert = 0x17,
       
    59         EDeleteExpired = 0x18,
       
    60         EDeleteAll = 0x19,
       
    61         ERsaSign = 0x20,
       
    62         EGetMeteringData = 0x21,
       
    63         EDeleteMeteringData = 0x22,
       
    64         ERetrieveAllRIContexts = 0x23,
       
    65         EUpdateRIContext = 0x24,
       
    66         EUpdateDrmTime = 0x25,
       
    67         EVerifyOcspResponses = 0x26,
       
    68         EGetOcspResponderId = 0x27
       
    69         };
       
    70 
       
    71     }
       
    72 
       
    73 #endif      // DRMROAPCLIENTSERVER_H
       
    74 
       
    75 // End of File