pkiutilities/DeviceToken/Inc/DevTokenKeyInfoArray.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2006 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:   The header file of DevTokenKeyInfoArray
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DEVTOKENKEYINFOARRAY_H__
       
    21 #define __DEVTOKENKEYINFOARRAY_H__
       
    22 
       
    23 #include "DevTokenDataTypes.h" //MDevTokenKeyInfoArray
       
    24 
       
    25 /**
       
    26  * A class that wraps an array of key info pointers.
       
    27  * Implements the MDevTokenKeyInfoArray interface required for marshalling key info
       
    28  * arrays.  
       
    29  *
       
    30  *  @lib DevTokenClient.dll
       
    31  *  @since S60 v3.2
       
    32  */
       
    33 class TDevTokenKeyInfoArray : public MDevTokenKeyInfoArray
       
    34     {
       
    35     public:
       
    36     
       
    37         TDevTokenKeyInfoArray(RMPointerArray<CCTKeyInfo>& aArray) : iArray(aArray) { }
       
    38         
       
    39         virtual TInt Count() { return iArray.Count(); }
       
    40         
       
    41         virtual CCTKeyInfo* operator[](TInt aIndex) { return static_cast<CCTKeyInfo*>(iArray[aIndex]); }
       
    42         
       
    43         virtual TInt Append(CCTKeyInfo* aInfo) { return iArray.Append(aInfo); }
       
    44         
       
    45         virtual void Close() { iArray.Close(); }
       
    46     
       
    47     private:
       
    48         
       
    49         RMPointerArray<CCTKeyInfo>& iArray;
       
    50     };
       
    51     
       
    52 #endif //__DEVTOKENKEYINFOARRAY_H__
       
    53 
       
    54 //EOF
       
    55