webservices/wsframework/inc/saslmechanism.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef SASL_MECHANISM_H
       
    26 #define SASL_MECHANISM_H
       
    27 
       
    28 // INCLUDES
       
    29 #include <e32base.h>
       
    30 
       
    31 #include <SenIdentityProvider.h>
       
    32 
       
    33 #include "senpasswordtransform.h"
       
    34 
       
    35 #include "msenidentitymanager.h" // internal IdentityManager\inc
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 class CSaslMechanism : public CBase
       
    40     {
       
    41     public: // Constructors and destructor
       
    42         IMPORT_C static CSaslMechanism* NewL();
       
    43         IMPORT_C static CSaslMechanism* NewLC();
       
    44         IMPORT_C ~CSaslMechanism();
       
    45 
       
    46         // New functions
       
    47         IMPORT_C virtual void ClearPasswordL();
       
    48         IMPORT_C virtual HBufC8* Password8L();
       
    49         IMPORT_C virtual void InitFrom( CSaslMechanism aSaslMechanism );
       
    50         IMPORT_C virtual TInt MaxAttempts();
       
    51         IMPORT_C virtual void SetIdentity(
       
    52                               CSenIdentityProvider* aIdentityProvider,
       
    53                               MSenIdentityManager* aIdentityManager);
       
    54 
       
    55         IMPORT_C virtual TBool IsPasswordFromUser();
       
    56         IMPORT_C virtual CSenIdentityProvider& Account();
       
    57         IMPORT_C virtual void SetTransforms(
       
    58                                 RPointerArray<CSenPasswordTransform> aList);
       
    59 
       
    60         IMPORT_C virtual HBufC8* TransformL(TPtrC8 aPassphrase) const;
       
    61 
       
    62     protected:
       
    63     
       
    64         /**
       
    65         * C++ default constructor.
       
    66         */
       
    67         IMPORT_C CSaslMechanism();
       
    68 
       
    69     protected: // Data
       
    70         CSenIdentityProvider*   ipAccount;          // NOT owned
       
    71         MSenIdentityManager*    ipIdentityManager;  // NOT owned
       
    72         RPointerArray<CSenPasswordTransform> iTransforms; // owned
       
    73     };
       
    74 
       
    75 #endif //SASL_MECHANISM_H
       
    76 
       
    77 // End of File