diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/helloworldbasicdocument_8cpp_source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/helloworldbasicdocument_8cpp_source.html Tue Mar 30 16:16:55 2010 +0100 @@ -0,0 +1,112 @@ + + +
+ +00001 /* +00002 * ============================================================================== +00003 * Name : helloworldbasicdocument.cpp +00004 * Part of : Helloworldbasic +00005 * Interface : +00006 * Description : +00007 * Version : +00008 * +00009 * Copyright (c) 2005-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 // INCLUDE FILES +00017 #include "HelloWorldBasicAppUi.h" +00018 #include "HelloWorldBasicDocument.h" +00019 +00020 // ============================ MEMBER FUNCTIONS =============================== +00021 +00022 // ----------------------------------------------------------------------------- +00023 // CHelloWorldBasicDocument::NewL() +00024 // Two-phased constructor. +00025 // ----------------------------------------------------------------------------- +00026 // +00027 CHelloWorldBasicDocument* CHelloWorldBasicDocument::NewL( CEikApplication& +00028 aApp ) +00029 { +00030 CHelloWorldBasicDocument* self = NewLC( aApp ); +00031 CleanupStack::Pop( self ); +00032 return self; +00033 } +00034 +00035 // ----------------------------------------------------------------------------- +00036 // CHelloWorldBasicDocument::NewLC() +00037 // Two-phased constructor. +00038 // ----------------------------------------------------------------------------- +00039 // +00040 CHelloWorldBasicDocument* CHelloWorldBasicDocument::NewLC( CEikApplication& +00041 aApp ) +00042 { +00043 CHelloWorldBasicDocument* self = +00044 new ( ELeave ) CHelloWorldBasicDocument( aApp ); +00045 +00046 CleanupStack::PushL( self ); +00047 self->ConstructL(); +00048 return self; +00049 } +00050 +00051 // ----------------------------------------------------------------------------- +00052 // CHelloWorldBasicDocument::ConstructL() +00053 // Symbian 2nd phase constructor can leave. +00054 // ----------------------------------------------------------------------------- +00055 // +00056 void CHelloWorldBasicDocument::ConstructL() +00057 { +00058 // No implementation required +00059 } +00060 +00061 // ----------------------------------------------------------------------------- +00062 // CHelloWorldBasicDocument::CHelloWorldBasicDocument() +00063 // C++ default constructor can NOT contain any code, that might leave. +00064 // ----------------------------------------------------------------------------- +00065 // +00066 CHelloWorldBasicDocument::CHelloWorldBasicDocument( CEikApplication& aApp ) +00067 : CAknDocument( aApp ) +00068 { +00069 // No implementation required +00070 } +00071 +00072 // --------------------------------------------------------------------------- +00073 // CHelloWorldBasicDocument::~CHelloWorldBasicDocument() +00074 // Destructor. +00075 // --------------------------------------------------------------------------- +00076 // +00077 CHelloWorldBasicDocument::~CHelloWorldBasicDocument() +00078 { +00079 // No implementation required +00080 } +00081 +00082 // --------------------------------------------------------------------------- +00083 // CHelloWorldBasicDocument::CreateAppUiL() +00084 // Constructs CreateAppUi. +00085 // --------------------------------------------------------------------------- +00086 // +00087 CEikAppUi* CHelloWorldBasicDocument::CreateAppUiL() +00088 { +00089 // Create the application user interface, and return a pointer to it; +00090 // the framework takes ownership of this object +00091 return ( static_cast <CEikAppUi*> ( new ( ELeave ) +00092 CHelloWorldBasicAppUi ) ); +00093 } +00094 +00095 // End of File +00096 +