CelestialSphereDocument.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. ============================================================================
  3. Name : CelestialSphereDocument.h
  4. Author : Den Grigorenko
  5. Copyright : Copyright (c) 2008 Den123
  6. Description : Declares document class for application.
  7. ============================================================================
  8. */
  9. #ifndef __CELESTIALSPHEREDOCUMENT_h__
  10. #define __CELESTIALSPHEREDOCUMENT_h__
  11. // INCLUDES
  12. #include <akndoc.h>
  13. // FORWARD DECLARATIONS
  14. class CCelestialSphereAppUi;
  15. class CEikApplication;
  16. // CLASS DECLARATION
  17. /**
  18. * CCelestialSphereDocument application class.
  19. * An instance of class CCelestialSphereDocument is the Document part of the
  20. * AVKON application framework for the CelestialSphere example application.
  21. */
  22. class CCelestialSphereDocument : public CAknDocument
  23. {
  24. public:
  25. // Constructors and destructor
  26. /**
  27. * NewL.
  28. * Two-phased constructor.
  29. * Construct a CCelestialSphereDocument for the AVKON application aApp
  30. * using two phase construction, and return a pointer
  31. * to the created object.
  32. * @param aApp Application creating this document.
  33. * @return A pointer to the created instance of CCelestialSphereDocument.
  34. */
  35. static CCelestialSphereDocument* NewL(CEikApplication& aApp);
  36. /**
  37. * NewLC.
  38. * Two-phased constructor.
  39. * Construct a CCelestialSphereDocument for the AVKON application aApp
  40. * using two phase construction, and return a pointer
  41. * to the created object.
  42. * @param aApp Application creating this document.
  43. * @return A pointer to the created instance of CCelestialSphereDocument.
  44. */
  45. static CCelestialSphereDocument* NewLC(CEikApplication& aApp);
  46. /**
  47. * ~CCelestialSphereDocument
  48. * Virtual Destructor.
  49. */
  50. virtual ~CCelestialSphereDocument();
  51. public:
  52. // Functions from base classes
  53. /**
  54. * CreateAppUiL
  55. * From CEikDocument, CreateAppUiL.
  56. * Create a CCelestialSphereAppUi object and return a pointer to it.
  57. * The object returned is owned by the Uikon framework.
  58. * @return Pointer to created instance of AppUi.
  59. */
  60. CEikAppUi* CreateAppUiL();
  61. private:
  62. // Constructors
  63. /**
  64. * ConstructL
  65. * 2nd phase constructor.
  66. */
  67. void ConstructL();
  68. /**
  69. * CCelestialSphereDocument.
  70. * C++ default constructor.
  71. * @param aApp Application creating this document.
  72. */
  73. CCelestialSphereDocument(CEikApplication& aApp);
  74. };
  75. #endif // __CELESTIALSPHEREDOCUMENT_h__
  76. // End of File