2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef MCLFOPERATIONOBSERVER_H
20 #define MCLFOPERATIONOBSERVER_H
27 * Content Listing Framework list model operation events
29 enum TCLFOperationEvent
31 /// Refresh operation is completed
32 ECLFRefreshComplete = 0x0,
33 /// Model content is obsolated and should be refreshed
34 ECLFModelOutdated = 0x1
37 // FORWARD DECLARATIONS
38 class MCLFOperationObserverExt;
43 * Operation Observer is for observing operation events of the Content Listing
44 * Framework. Client application gets notified when asynchronous operations
45 * are completed. For example, ECLFRefreshComplete event is received when the
46 * asynchronous refresh operation is compeleted.
48 * @lib ContentListingFramework.lib
51 class MCLFOperationObserver
53 public: // New functions
56 * Abstract method to get list model operation events. This method is
57 * called when an event is received.
59 * @param aOperationEvent Operation event code of the event
60 * @param aError System wide error code if the operation did not
63 virtual void HandleOperationEventL( TCLFOperationEvent aOperationEvent,
71 virtual ~MCLFOperationObserver() {}
73 private: // Extension interface
76 * This member is internal and not intended for use.
78 virtual MCLFOperationObserverExt* Extension() { return NULL; }
83 #endif // MCLFOPERATIONOBSERVER_H