wim/WimClient/inc/WimCertTClassWrappers.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     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:  These wrappers are used when we need to fetch/insert 
       
    15 *               certificate data asyncronously.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef WIMCERTCLASSWRAPPERS_H
       
    21 #define WIMCERTCLASSWRAPPERS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Class which wraps a TPckg -buffer. 
       
    30 *
       
    31 *  @lib WimClient
       
    32 *  @since Series60 2.1
       
    33 */
       
    34 template <class T>
       
    35 class CWimCertPckg : public CBase
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * C++ constructor.
       
    41         */
       
    42         inline CWimCertPckg( const T& aRef );
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         inline virtual ~CWimCertPckg();
       
    48 
       
    49     public: // New functions
       
    50         
       
    51         /**
       
    52         * @return TPckg<T>* Pointer to TPckg<T> typed member
       
    53         */
       
    54         inline TPckg<T>* Pckg();
       
    55 
       
    56     private:    // Data
       
    57         // Wrapped TPckg<T>
       
    58         TPckg<T>    iPckg;
       
    59     };
       
    60 
       
    61 
       
    62 /**
       
    63 *  Class which wraps a TPckgBuf -buffer. 
       
    64 *
       
    65 *  @WimClient
       
    66 *  @since Series60 2.1
       
    67 */
       
    68 template <class T>
       
    69 class CWimCertPckgBuf : public CBase
       
    70     {
       
    71     public:  // Constructors and destructor
       
    72         
       
    73         /**
       
    74         * C++ default constructor.
       
    75         */
       
    76         inline CWimCertPckgBuf();
       
    77 
       
    78         /**
       
    79         * C++ constructor.
       
    80         */
       
    81         inline CWimCertPckgBuf( const T& aRef );
       
    82         
       
    83         /**
       
    84         * Destructor.
       
    85         */
       
    86         inline virtual ~CWimCertPckgBuf();
       
    87 
       
    88 
       
    89     public: // New functions
       
    90         
       
    91         /**
       
    92         * @return TPckgBuf<T>* Pointer to TPckgBuf<T> typed member
       
    93         */
       
    94         inline TPckgBuf<T>* PckgBuf();
       
    95 
       
    96     private:    // Data
       
    97         // Wrapped TPckgBuf<T>
       
    98         TPckgBuf<T>    iPckgBuf;
       
    99         
       
   100     };
       
   101 
       
   102 #include "WimCertTClassWrappers.inl"
       
   103 
       
   104 #endif //WIMICERTCLASSWRAPPERS_H         
       
   105             
       
   106