1 /* 2 ======================================================================== 3 Name : pjsuaDocument.cpp 4 Author : nanang 5 Copyright : Copyright (C) 2013 Teluu Inc. (http://www.teluu.com) 6 Description : 7 ======================================================================== 8 */ 9 // [[[ begin generated region: do not modify [Generated User Includes] 10 #include "pjsuaDocument.h" 11 #include "pjsuaAppUi.h" 12 // ]]] end generated region [Generated User Includes] 13 14 /** 15 * @brief Constructs the document class for the application. 16 * @param anApplication the application instance 17 */ CpjsuaDocument(CEikApplication & anApplication)18CpjsuaDocument::CpjsuaDocument( CEikApplication& anApplication ) 19 : CAknDocument( anApplication ) 20 { 21 } 22 23 /** 24 * @brief Completes the second phase of Symbian object construction. 25 * Put initialization code that could leave here. 26 */ ConstructL()27void CpjsuaDocument::ConstructL() 28 { 29 } 30 31 /** 32 * Symbian OS two-phase constructor. 33 * 34 * Creates an instance of CpjsuaDocument, constructs it, and 35 * returns it. 36 * 37 * @param aApp the application instance 38 * @return the new CpjsuaDocument 39 */ NewL(CEikApplication & aApp)40CpjsuaDocument* CpjsuaDocument::NewL( CEikApplication& aApp ) 41 { 42 CpjsuaDocument* self = new ( ELeave ) CpjsuaDocument( aApp ); 43 CleanupStack::PushL( self ); 44 self->ConstructL(); 45 CleanupStack::Pop( self ); 46 return self; 47 } 48 49 /** 50 * @brief Creates the application UI object for this document. 51 * @return the new instance 52 */ CreateAppUiL()53CEikAppUi* CpjsuaDocument::CreateAppUiL() 54 { 55 return new ( ELeave ) CpjsuaAppUi; 56 } 57 58