wim/WimServer/inc/WimTokenHandler.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:  WIM Token handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CWIMTOKENHANDLER_H
       
    21 #define CWIMTOKENHANDLER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CWimMemMgmt;
       
    28 class CWimTimer;
       
    29 class CWimUtilityFuncs;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 
       
    34 /**
       
    35 *  Class for token handling
       
    36 *
       
    37 *  @lib WimServer.lib
       
    38 *  @since Series60 2.1
       
    39 */
       
    40 class CWimTokenHandler : public CBase
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static CWimTokenHandler* NewL();
       
    48         
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CWimTokenHandler();
       
    53 
       
    54     public: // New functions
       
    55         
       
    56         /**
       
    57         * Fetches WIM card info.
       
    58         * @param aMessage Encapsulates a client request.
       
    59         * @param aWimMgmt Pointer to memory management class.
       
    60         * @return void
       
    61         */
       
    62         void GetWIMInfoL( const RMessage2& aMessage,
       
    63                           CWimMemMgmt* const aWimMgmt ) const;
       
    64 
       
    65         /**
       
    66         * Checks if the WIM is already opened.
       
    67         * @param aMessage Encapsulates a client request.
       
    68         * @param aTimer Pointer to timer class.
       
    69         * @return void
       
    70         */
       
    71         void IsWIMOpenL( const RMessage2& aMessage,
       
    72                          CWimTimer* const aTimer, 
       
    73                          CWimMemMgmt* const aWimMgmt ) const;
       
    74 
       
    75         /**
       
    76         * Closes a connection to a WIM card.
       
    77         * @param aMessage Encapsulates a client request.
       
    78         * @return void
       
    79         */
       
    80         void CloseWIM( const RMessage2& aMessage ) const;
       
    81 
       
    82     private:
       
    83 
       
    84         /**
       
    85         * C++ default constructor.
       
    86         */
       
    87         CWimTokenHandler();
       
    88 
       
    89         /**
       
    90         * By default Symbian 2nd phase constructor is private.
       
    91         */
       
    92         void ConstructL();
       
    93 
       
    94     private:    // Data
       
    95         // Pointer to utility class
       
    96         CWimUtilityFuncs* iWimUtilFuncs;
       
    97          
       
    98     };
       
    99 
       
   100 #endif      // CWIMTOKENHANDLER_H   
       
   101             
       
   102 // End of File