|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : LandmarksOperationObserver.h 00004 * Part of : Landmark Reference Application 00005 * Interface : - 00006 * Description : See class description below 00007 * Version : 1.0 00008 * 00009 * Copyright (c) 2004-2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 #ifndef __LANDMARKS_OPERATION_OBSERVER_H__ 00017 #define __LANDMARKS_OPERATION_OBSERVER_H__ 00018 00019 // INCLUDES 00020 #include <e32base.h> 00021 00022 // CONSTANTS 00023 const TInt KOperationReady = 100; 00024 const TInt KOperationNotReady = 0; 00025 00026 // DATA TYPES 00027 /** 00028 * TOperation indicates which operation type has been processed 00029 */ 00030 enum TOperation 00031 { 00032 ENoOperation, 00033 EInitializeDb, 00034 ELandmarkSearch, 00035 ECategorySearch, 00036 ELandmarkRead, 00037 ECategoryRead, 00038 EAcquiringLocation 00039 }; 00040 00041 // CLASS DECLARATION 00042 00043 /** 00044 * An observer interface used for notifying the execution progress of 00045 * asynchronous opearations. 00046 * Typically used by objects deriving from other classes than CActive. 00047 */ 00048 class MLandmarksOperationObserver 00049 { 00050 public: // New functions 00051 00052 /** 00053 * NotifyOperationProgressL notifies the progress and status of an 00054 * asynchronous operation. 00055 * 00056 * @param aOperation the type of operation that is reported. 00057 * @param aProgress the progress of the operation. 00058 * @param aErrorCode the status of the operation. 00059 */ 00060 virtual void NotifyOperationProgressL( 00061 TOperation aOperation, 00062 TInt aProgress, 00063 TInt aErrorCode) = 0; 00064 00065 }; 00066 00067 #endif // __LANDMARKS_OPERATION_OBSERVER_H__ 00068 00069 // End of File 00070
|
© Nokia 2006 |