S60MemoryLabDocument.cpp
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:3k
源码类别:

Symbian

开发平台:

C/C++

  1. // Copyright: (c) 2006 Nokia Ltd.  All rights reserved.
  2. // INCLUDE FILES
  3. #include "S60MemoryLabAppUi.h"
  4. #include "S60MemoryLabDocument.h"
  5. // ============================ MEMBER FUNCTIONS ===============================
  6. // -----------------------------------------------------------------------------
  7. // CS60MemoryLabDocument::NewL()
  8. // Two-phased constructor.
  9. // -----------------------------------------------------------------------------
  10. //
  11. CS60MemoryLabDocument* CS60MemoryLabDocument::NewL(CEikApplication& aApp)
  12.     {
  13.     CS60MemoryLabDocument* self = NewLC( aApp );
  14.     CleanupStack::Pop( self );
  15.     return self;
  16.     }
  17. // -----------------------------------------------------------------------------
  18. // CS60MemoryLabDocument::NewLC()
  19. // Two-phased constructor.
  20. // -----------------------------------------------------------------------------
  21. //
  22. CS60MemoryLabDocument* CS60MemoryLabDocument::NewLC(CEikApplication& aApp)
  23.     {
  24.     CS60MemoryLabDocument* self = new (ELeave) CS60MemoryLabDocument(aApp);
  25.     CleanupStack::PushL( self );
  26.     self->ConstructL();
  27.     
  28.     return self;
  29.     }
  30. // -----------------------------------------------------------------------------
  31. // CS60MemoryLabDocument::ConstructL()
  32. // Symbian 2nd phase constructor can leave.
  33. // -----------------------------------------------------------------------------
  34. //
  35. void CS60MemoryLabDocument::ConstructL()
  36.     {
  37.     // No implementation required
  38.     }
  39. // -----------------------------------------------------------------------------
  40. // CS60MemoryLabDocument::CS60MemoryLabDocument()
  41. // C++ default constructor can NOT contain any code, that might leave.
  42. // -----------------------------------------------------------------------------
  43. //
  44. CS60MemoryLabDocument::CS60MemoryLabDocument( CEikApplication& aApp )
  45.     : CAknDocument( aApp )
  46.     {
  47.     // No implementation required
  48.     }
  49. // ---------------------------------------------------------------------------
  50. // CS60MemoryLabDocument::~CS60MemoryLabDocument()
  51. // Destructor.
  52. // ---------------------------------------------------------------------------
  53. //
  54. CS60MemoryLabDocument::~CS60MemoryLabDocument()
  55.     {
  56.     // No implementation required
  57.     }
  58. // ---------------------------------------------------------------------------
  59. // CS60MemoryLabDocument::CreateAppUiL()
  60. // Constructs CreateAppUi.
  61. // ---------------------------------------------------------------------------
  62. //
  63. CEikAppUi* CS60MemoryLabDocument::CreateAppUiL()
  64.     {
  65.     // Create the application user interface, and return a pointer to it;
  66.     // the framework takes ownership of this object
  67.     return (static_cast <CEikAppUi*>(new (ELeave) CS60MemoryLabAppUi));
  68.     }
  69. // End of File