telephonyserverplugins/simtsy/inc/CSimPhoneInitialise.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 //
       
    15 
       
    16 #ifndef __SIMPHONEINITIALISE_H_
       
    17 #define __SIMPHONEINITIALISE_H_
       
    18 
       
    19 /**
       
    20  @file
       
    21  This file contains timer and callback class for phone initialisation delay
       
    22  
       
    23  @internalAll
       
    24  */
       
    25 
       
    26 #include <etelmm.h>
       
    27 #include "csimtimer.h"
       
    28 #include "CSimPhone.h"
       
    29 
       
    30 	
       
    31 // timer and callback classes for phone initialisation delay
       
    32 NONSHARABLE_CLASS(CSimPhoneInitialise) : CBase, MTimerCallBack
       
    33 	{
       
    34 public:
       
    35 	static CSimPhoneInitialise* NewL(CSimPhone* aPhone);
       
    36 	~CSimPhoneInitialise();
       
    37 
       
    38 	void Start(const TTsyReqHandle aHandle);
       
    39 	void Cancel();
       
    40 
       
    41 private:
       
    42 	CSimPhoneInitialise(CSimPhone* aPhone);
       
    43 	void ConstructL();
       
    44 	
       
    45 	void ReadDelayFromConfig();
       
    46 	void TimerCallBack(TInt aId);
       
    47 
       
    48 private:
       
    49 	CSimPhone *iPhone;
       
    50 	// timer that calls TimerCallBack after initialisation delay
       
    51 	CSimTimer *iInitialiseDelayTimer;
       
    52 	// the amount of time to delay
       
    53 	TInt iPhoneInitialiseDelay;
       
    54 	// handle of request to complete after delay
       
    55 	TTsyReqHandle iPhoneInitialiseHandle;
       
    56 	};
       
    57 
       
    58 #endif // __SIMPHONEINITIALISE_H_