webservices/wsidentitymanager/inc/sensecuritymechanismobserver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 16:18:26 +0300
branchRCL_3
changeset 22 c5fabff9b552
parent 0 62f9d29f7211
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Header declaration
*
*/








#ifndef SEN_SECURITY_MECHANISMOBSERVER_H
#define SEN_SECURITY_MECHANISMOBSERVER_H

//  INCLUDES
#include <e32base.h>
#include <ecom.h>

// CONSTANTS

// FORWARD DECLARATIONS
class CSenBaseIdentityManager;
class RFileLogger;

// CLASS DECLARATION
class CSenSenSecurityMechanismObserver :    public CActive
{
    public: // Constructors and destructor
    
        static CSenSenSecurityMechanismObserver* NewL(
                                            CSenBaseIdentityManager& aOwner);
        static CSenSenSecurityMechanismObserver* NewLC(
                                            CSenBaseIdentityManager& aOwner);

        virtual ~CSenSenSecurityMechanismObserver();

        // New functions
        
        void Start();
 
        // Functions from base classes
        
        virtual void RunL();
        virtual TInt RunError(TInt aError);

    protected: // New functions
        
        virtual void DoCancel();

    private:
        
        /**
        * C++ default constructor.
        */
        CSenSenSecurityMechanismObserver(CSenBaseIdentityManager& aOwner);

        /**
        * By default Symbian 2nd phase constructor is private.
        */
        void ConstructL();

        RFileLogger* Log();

    private: // Data
        CSenBaseIdentityManager& iOwner;
        REComSession iEcomSession;
    };

#endif // SEN_SECURITY_MECHANISMOBSERVER_H

// End of File