buildverification/smoketest/agenda/Inc/TestAgendaServerLaunchProgress.h
branchRCL_3
changeset 11 493058e57c8c
parent 0 9736f095102e
equal deleted inserted replaced
10:4ca382093dae 11:493058e57c8c
       
     1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This contains CTestAgendaServerLaunchProgress
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef TEST_AGENDA_SERVER_LAUNCH_PROGRESS_H
       
    19 #define TEST_AGENDA_SERVER_LAUNCH_PROGRESS_H
       
    20 
       
    21 #include "TestAgendabase.h"
       
    22 #include <e32base.h>
       
    23 #include <calprogresscallback.h>
       
    24 
       
    25 
       
    26 //forward declaration
       
    27 //class CTestAgendaBase;
       
    28 class CCalEntryView;
       
    29 
       
    30 
       
    31 class CTestAgendaServerLaunchProgress : public CActive, private MCalProgressCallBack
       
    32 /**
       
    33 * This class provides an implementationfor the pure virtual functions
       
    34 * declared in MAgnProgressCallBack. The framework  makes calls to the
       
    35 * functions indidcating the status of the operation.
       
    36 */
       
    37 {
       
    38 public:
       
    39 	static CTestAgendaServerLaunchProgress* NewL(CTestAgendaBase* aAgendaBase);
       
    40 	virtual ~CTestAgendaServerLaunchProgress();
       
    41 	void	Start();
       
    42 
       
    43 	//from CActive
       
    44 	virtual void	RunL();
       
    45 	virtual void	DoCancel();
       
    46 
       
    47 private:
       
    48 	CTestAgendaServerLaunchProgress(CTestAgendaBase* aAgendaBase);
       
    49 	void	ConstructL();
       
    50 
       
    51 	//from MAgnProgressCallBack
       
    52 	virtual void	Completed(TInt aError = KErrNone);
       
    53 	virtual void	Progress(TInt aPercentageCompleted);
       
    54 	virtual TBool NotifyProgress();
       
    55 
       
    56 private:
       
    57 	/**
       
    58 	pointer to the CTestAgendaBase object.
       
    59 	*/
       
    60 	CTestAgendaBase*			iAgendaBase;
       
    61     CCalEntryView*              iCalEntryView;
       
    62 
       
    63 	/**
       
    64 	file in which the entries are present
       
    65 	*/
       
    66 	TPtrC						iFileName;
       
    67 
       
    68 	/**
       
    69 	file server session
       
    70 	*/
       
    71 	RFs							iFs;
       
    72 
       
    73 };
       
    74 
       
    75 #endif TEST_AGENDA_SERVER_LAUNCH_PROGRESS_H