webservices/wsstar/wsstarplugin/inc/wsstarcredentialobserver.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 #ifndef WSSTARCREDENTIALOBSERVER_H
       
    18 #define WSSTARCREDENTIALOBSERVER_H
       
    19 
       
    20 #include <e32base.h>	// For CActive, link against: euser.lib
       
    21 #include <e32std.h>		// For RTimer, link against: euser.lib
       
    22 #include "wsstarservicesession.h"
       
    23 
       
    24 class CWSStarCredentialObserver : public CTimer
       
    25 {
       
    26 public:
       
    27 	// Cancel and destroy
       
    28 	~CWSStarCredentialObserver();
       
    29 
       
    30 	// Two-phased constructor.
       
    31 	static CWSStarCredentialObserver* NewL(CWSStarServiceSession* aSession, RFileLogger* aLogger);
       
    32 
       
    33 	// Two-phased constructor.
       
    34 	static CWSStarCredentialObserver* NewLC(CWSStarServiceSession* aSession, RFileLogger* aLogger);
       
    35 	
       
    36 
       
    37 	void RunL();
       
    38 public: // New functions
       
    39 	// Function for making the initial request
       
    40 	void Start( const TTimeIntervalMicroSeconds& aDiff);//const TTime &aTime);
       
    41 	RFileLogger* Log() const;
       
    42 private:
       
    43 	// C++ constructor
       
    44 	CWSStarCredentialObserver(CWSStarServiceSession* aSession, RFileLogger* aLogger);
       
    45 	void StartCount();
       
    46 
       
    47 	// Second-phase constructor
       
    48 	void ConstructL();
       
    49 
       
    50 
       
    51 private:
       
    52 	TBool	iRunned;		// State of the active object
       
    53          CWSStarServiceSession* iSession;//not owned
       
    54          RFileLogger* iLogger; //not owned
       
    55          TInt64 iRestTime;
       
    56 };
       
    57 
       
    58 #endif // WSSTARCREDENTIALOBSERVER_H