summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/pjsua/symbian/src/pjsuaDocument.cpp
blob: f349c6e82db7890c3d16ec8a6826fbbd96f857b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
========================================================================
 Name        : pjsuaDocument.cpp
 Author      : nanang
 Copyright   : Copyright (C) 2013 Teluu Inc. (http://www.teluu.com)
 Description : 
========================================================================
*/
// [[[ begin generated region: do not modify [Generated User Includes]
#include "pjsuaDocument.h"
#include "pjsuaAppUi.h"
// ]]] end generated region [Generated User Includes]

/**
 * @brief Constructs the document class for the application.
 * @param anApplication the application instance
 */
CpjsuaDocument::CpjsuaDocument( CEikApplication& anApplication )
	: CAknDocument( anApplication )
	{
	}

/**
 * @brief Completes the second phase of Symbian object construction. 
 * Put initialization code that could leave here.  
 */ 
void CpjsuaDocument::ConstructL()
	{
	}
	
/**
 * Symbian OS two-phase constructor.
 *
 * Creates an instance of CpjsuaDocument, constructs it, and
 * returns it.
 *
 * @param aApp the application instance
 * @return the new CpjsuaDocument
 */
CpjsuaDocument* CpjsuaDocument::NewL( CEikApplication& aApp )
	{
	CpjsuaDocument* self = new ( ELeave ) CpjsuaDocument( aApp );
	CleanupStack::PushL( self );
	self->ConstructL();
	CleanupStack::Pop( self );
	return self;
	}

/**
 * @brief Creates the application UI object for this document.
 * @return the new instance
 */	
CEikAppUi* CpjsuaDocument::CreateAppUiL()
	{
	return new ( ELeave ) CpjsuaAppUi;
	}