diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/threaddocument_8cpp_source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/threaddocument_8cpp_source.html Tue Mar 30 16:16:55 2010 +0100 @@ -0,0 +1,84 @@ + + +
+ +00001 /* +00002 * ============================================================================ +00003 * Name : CThreadDocument from CThreadDocument.h +00004 * Part of : Thread +00005 * Created : 04.02.2005 by Forum Nokia +00006 * Version : 1.0 +00007 * Copyright: Nokia Corporation +00008 * ============================================================================ +00009 */ +00010 +00011 // INCLUDES +00012 #include "ThreadAppUi.h" +00013 #include "ThreadDocument.h" +00014 +00015 CThreadDocument* CThreadDocument::NewL(CEikApplication& aApp) +00016 { +00017 CThreadDocument* self = NewLC(aApp); +00018 CleanupStack::Pop(self); +00019 return self; +00020 } +00021 +00022 CThreadDocument* CThreadDocument::NewLC(CEikApplication& aApp) +00023 { +00024 CThreadDocument* self = new (ELeave) CThreadDocument(aApp); +00025 CleanupStack::PushL(self); +00026 self->ConstructL(); +00027 return self; +00028 } +00029 +00030 // ---------------------------------------------------------------------------- +00031 // CThreadDocument::ConstructL() +00032 // +00033 // Standard EPOC 2nd phase constructor +00034 // ---------------------------------------------------------------------------- +00035 void CThreadDocument::ConstructL() +00036 { +00037 // No implementation required +00038 } +00039 +00040 // ---------------------------------------------------------------------------- +00041 // CThreadDocument::CThreadDocument(CEikApplication& aApp) +00042 // +00043 // constructor +00044 // ---------------------------------------------------------------------------- +00045 CThreadDocument::CThreadDocument(CEikApplication& aApp) : CAknDocument(aApp) +00046 { +00047 } +00048 +00049 // ---------------------------------------------------------------------------- +00050 // CThreadDocument::~CThreadDocument() +00051 // +00052 // destructor +00053 // ---------------------------------------------------------------------------- +00054 CThreadDocument::~CThreadDocument() +00055 { +00056 } +00057 +00058 // ---------------------------------------------------------------------------- +00059 // CThreadDocument::CreateAppUiL() +00060 // +00061 // constructs CThreadAppUi +00062 // ---------------------------------------------------------------------------- +00063 CEikAppUi* CThreadDocument::CreateAppUiL() +00064 { +00065 // Create the application user interface, and return a pointer to it; +00066 // the framework takes ownership of this object +00067 return (static_cast <CEikAppUi*> (new (ELeave) CThreadAppUi)); +00068 } +