vpnengine/vpnmanager/inc/pwdchanger.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2003 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: 
       
    15 * Handles the calling of PKI Service Server module’s password change function.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __PWDCHANGER_H__
       
    22 #define __PWDCHANGER_H__
       
    23 
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 class CX509Certificate;
       
    28 #include "pkiserviceapi.h"
       
    29 
       
    30 class CVpnApiServant;
       
    31 
       
    32 /**
       
    33  * Handles the calling of the PKI Services 
       
    34  * Server module's change password call.
       
    35  */
       
    36 class CPwdChanger : public CActive
       
    37     {
       
    38 public:
       
    39     static CPwdChanger* NewL(const RMessage2& aMessage, CVpnApiServant& aVpnApiServant);
       
    40     ~CPwdChanger();
       
    41     
       
    42     void ChangePassword();
       
    43     
       
    44 private:
       
    45     CPwdChanger(const RMessage2& aMessage, CVpnApiServant& aVpnApiServant);
       
    46     void ConstructL();
       
    47 
       
    48 protected: // From CActive
       
    49     void DoCancel();
       
    50     void RunL();
       
    51     
       
    52 private:
       
    53     RMessage2 iMessage;
       
    54     CVpnApiServant& iVpnApiServant;
       
    55     RPKIServiceAPI iPkiService;
       
    56     };
       
    57 
       
    58 #endif // __PWDCHANGER_H__