diff -r 000000000000 -r f979ecb2b13e calendarui/controller/inc/calenasynccallback.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/controller/inc/calenasynccallback.h Tue Feb 02 10:12:19 2010 +0200 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2007 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: Calendar's async callback +* +*/ + + + +#ifndef CALENASYNCCALLBACK_H +#define CALENASYNCCALLBACK_H + +// INCLUDES +#include +#include "calencontroller.h" + +// CLASS DEFINITIONS +/** + * Calendar async Callback + */ +NONSHARABLE_CLASS(CCalenAsyncCallBack) : public CAsyncCallBack + { + public: + static CCalenAsyncCallBack* NewL(TCallBack& aCallBack, CActive::TPriority aPriority, + CCalenController& aController); + void BaseConstructL(); + + virtual ~CCalenAsyncCallBack(); + + private: + CCalenAsyncCallBack(TCallBack& aCallBack, CActive::TPriority aPriority, + CCalenController& aController); + + public: // Function from base class + + /** + * Handle Completion + */ + void RunL(); + + /** + * Return reference to TRequestStatus member. + */ + TRequestStatus& Status(); + + //void Set(TCallBack& aCallBack); + private: + CCalenController& iController; + }; + + + +#endif //CALENASYNCCALLBACK_H