INCLUDES include CTestAppUi MEMBER FUNCTIONS CTestAppUi CTestAppUi Fir

 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
// ~== INCLUDES
#include "CTestAppUi.h"
// ~== MEMBER FUNCTIONS
// + CTestAppUi::CTestAppUi()
// First phase constructor.
//
CTestAppUi::CTestAppUi()
:iTelephonyApi(NULL),iExampleObject(NULL)
{
// No implementation required.
}
// + CTestAppUi::ConstructL()
// Second phase construction.
//
void CTestAppUi::ConstructL()
{
// Initialise app UI with standard values.
BaseConstructL(CAknAppUi::EAknEnableSkin);
// Register view.
iAppView=CTestAppView::NewL(ClientRect());
AddToStackL(iAppView);
iTelephonyApi=CTelephony::NewLC();
iExampleObject=CPhoneNotifier::NewLC(iTelephonyApi);
iExampleObject->RequestNotification();
CleanupStack::Pop(2,iTelephonyApi);
}