wmdrm/wmdrmengine/wmdrmserver/server/inc/enumerator.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Server definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __ENUMERATOR_H
       
    20 #define __ENUMERATOR_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <f32file.h>
       
    24 #include "wmdrmserver.h"
       
    25 
       
    26 class CEnumerator: public CBase
       
    27     {
       
    28 public:
       
    29 
       
    30     static CEnumerator* NewL(
       
    31         CWmDrmServer* aServer,
       
    32         const TDesC8& aMessageBuffer );
       
    33     
       
    34     virtual ~CEnumerator();
       
    35 
       
    36 	virtual TInt OpenL();
       
    37 	virtual TInt NextL() = 0;
       
    38 	virtual void Close();
       
    39 
       
    40     void GetHashKey( TDes8& aHashKey );
       
    41 
       
    42     void GetUniqueKey( TDes8& aHashKey );
       
    43 
       
    44     void DeleteCurrentL();
       
    45 
       
    46     TBuf8<KMaxWmDrmStoreNameSize> iStore;
       
    47     TBuf8<KMaxWmDrmNamespaceNameSize> iNamespace;
       
    48     TBuf8<KWmDrmIdSize> iHashKey;
       
    49     TBuf8<KWmDrmIdSize> iUniqueKey;
       
    50     CWmDrmServer* iServer;
       
    51     };
       
    52     
       
    53 #endif