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

Symbian

开发平台:

C/C++

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