S60 5th Edition SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : csasyncappview.h 00004 * Part of : CSAsync 00005 * Interface : 00006 * Description : 00007 * Version : 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 00017 #ifndef __CSASYNCAPPVIEW_H__ 00018 #define __CSASYNCAPPVIEW_H__ 00019 00020 // INCLUDE FILES 00021 #include <coecntrl.h> 00022 00023 // FORWARD DECLARATIONS 00024 class CCSAsyncDocument; 00025 00026 // CLASS DECLARATION 00027 /** 00028 * CCSAsyncAppView 00029 * An instance of the Application View object for the CSAsync 00030 * example application. 00031 */ 00032 class CCSAsyncAppView : public CCoeControl 00033 { 00034 public: // Constructors and destructors 00035 00036 /** 00037 * NewL. 00038 * Two-phased constructor. 00039 * Creates a CCSAsyncAppView object, which will draw itself to aRect. 00040 * @param aRect The rectangle this view will be drawn to. 00041 * @param aDocument The document to read time data from. 00042 * @return A pointer to the created instance of CCSAsyncAppView. 00043 */ 00044 static CCSAsyncAppView* NewL( const TRect& aRect, 00045 CCSAsyncDocument& aDocument ); 00046 00047 /** 00048 * NewLC. 00049 * Two-phased constructor. 00050 * Creates a CCSAsyncAppView object, which will draw itself to aRect. 00051 * @param aRect The rectangle this view will be drawn to. 00052 * @param aDocument The document to read time data from. 00053 * @return A pointer to the created instance of CCSAsyncAppView. 00054 */ 00055 static CCSAsyncAppView* NewLC( const TRect& aRect, 00056 CCSAsyncDocument& aDocument ); 00057 00058 /** 00059 * ~CCSAsyncAppView. 00060 * Destructor. 00061 * Destroys the object and release all memory objects. 00062 */ 00063 virtual ~CCSAsyncAppView(); 00064 00065 public: // Functions from base classes 00066 00067 /** 00068 * From CCoeControl, Draw. 00069 * Draws this CCSAsyncAppView to the screen. 00070 * @param aRect The rectangle of this view that needs updating. 00071 */ 00072 void Draw( const TRect& aRect ) const; 00073 00074 private: // Constructors and destructors 00075 00076 /** 00077 * CCSAsyncAppView. 00078 * C++ default constructor. 00079 * Performs the first phase of two phase construction. 00080 * @param aDocument The document to read time data from. 00081 */ 00082 CCSAsyncAppView( CCSAsyncDocument& aDocument ); 00083 00084 /** 00085 * ConstructL. 00086 * Performs the second phase construction of a CCSAsyncAppView object. 00087 * @param aRect The rectangle this view will be drawn to. 00088 */ 00089 void ConstructL( const TRect& aRect ); 00090 00091 private: // Data 00092 00093 /** 00094 * iDocument, the application document. 00095 */ 00096 CCSAsyncDocument& iDocument; 00097 }; 00098 00099 00100 #endif // __CSASYNCAPPVIEW_H__ 00101 00102 00103 // End of File
© Nokia 2009 |