diff -r 000000000000 -r f979ecb2b13e calendarui/server/CalenShared/Inc/CalServerSignaller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/server/CalenShared/Inc/CalServerSignaller.h Tue Feb 02 10:12:19 2010 +0200 @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2002-2004 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: This class handles signals related to asynchrnous functionalities for calendar server +* +*/ + + + +#ifndef CALSVRSIGNALLER_H +#define CALSVRSIGNALLER_H + +// INCLUDES +#include +#include + + +// CLASS DECLARATION +NONSHARABLE_CLASS( TCalServerStart ) + { +public: + inline TCalServerStart(TRequestStatus& aStatus); + inline TPtrC AsCommand() const; + +private: + inline TCalServerStart(){}; + +private: + TThreadId iId; + TRequestStatus* iStatus; + + }; + +inline TCalServerStart::TCalServerStart(TRequestStatus& aStatus) + : iId( RThread().Id() ), + iStatus( &aStatus ) + { + aStatus = KRequestPending; + } + +inline TPtrC TCalServerStart::AsCommand() const + { + return TPtrC( reinterpret_cast( this ), sizeof( TCalServerStart )/sizeof( TText ) ); + } + +#endif // CALSVRSIGNALLER_H + + +// End of File