webservices/wsidentitymanager/inc/senuser.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2009 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 #ifndef SENUSER_H
       
    21 #define SENUSER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 #include "senbaseidentity.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 _LIT(KSenUser, "SenUser");
       
    31 
       
    32 /**
       
    33 *  CSenUser
       
    34 * 
       
    35 */
       
    36 class CSenUser : public CBase
       
    37 {
       
    38 public: // Constructors and destructor
       
    39 
       
    40 	/**
       
    41 		* Destructor.
       
    42 		*/
       
    43 	~CSenUser();
       
    44 
       
    45 		/**
       
    46 		* Two-phased constructor.
       
    47 		*/
       
    48 	static CSenUser* NewL(const TDesC8& aUserName, const TDesC8& aPIN, TBool aActive = EFalse);
       
    49 
       
    50 		/**
       
    51 		* Two-phased constructor.
       
    52 		*/
       
    53 	static CSenUser* NewLC(const TDesC8& aUserName, const TDesC8& aPIN, TBool aActive = EFalse);
       
    54     
       
    55      IMPORT_C inline  TDesC8& UserName() const;
       
    56 	 IMPORT_C inline  TDesC8& PIN() const;
       
    57      IMPORT_C inline  TBool Active() const;
       
    58      IMPORT_C inline  RPointerArray<CSenBaseIdentity>& Identites();
       
    59 
       
    60     
       
    61 
       
    62 private:
       
    63 
       
    64 	/**
       
    65 		* Constructor for performing 1st stage construction
       
    66 		*/
       
    67 	CSenUser(TBool aActive);
       
    68 
       
    69 	/**
       
    70 		* EPOC default constructor for performing 2nd stage construction
       
    71 		*/
       
    72 	void ConstructL(const TDesC8& aUserName, const TDesC8& aPIN);
       
    73 
       
    74 
       
    75     RBuf8 iUserName;
       
    76     RBuf8 iPIN;
       
    77     TBool iActive;
       
    78     RPointerArray<CSenBaseIdentity> iBaseIdentities;
       
    79     
       
    80 };
       
    81 
       
    82 #include "senuser.inl"
       
    83 
       
    84 #endif // SENUSER_H
       
    85