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