Nokia N97 SDK
Example Applications Guide

longtapdetectorexdoc.cpp

00001 /**
00002  * Copyright (c) 2007 Nokia Corporation.
00003  * This material, including documentation and any related
00004  * computer programs, is protected by
00005  * copyright controlled by Nokia Corporation.
00006  */
00007 
00008 
00009 
00010 // INCLUDE FILES
00011 #include "longtapdetectorexappui.h"
00012 #include "longtapdetectorexdoc.h"
00013 
00014 
00015 // ============================ MEMBER FUNCTIONS ===============================
00016 
00017 // -----------------------------------------------------------------------------
00018 // CLongTapDetectorExDoc::NewL()
00019 // Two-phased constructor.
00020 // -----------------------------------------------------------------------------
00021 //
00022 CLongTapDetectorExDoc* CLongTapDetectorExDoc::NewL( CEikApplication& aApp )
00023     {
00024     CLongTapDetectorExDoc* self = NewLC( aApp );
00025     CleanupStack::Pop( self );
00026     return self;
00027     }
00028 
00029 // -----------------------------------------------------------------------------
00030 // CLongTapDetectorExDoc::NewLC()
00031 // Two-phased constructor.
00032 // -----------------------------------------------------------------------------
00033 //
00034 CLongTapDetectorExDoc* CLongTapDetectorExDoc::NewLC( CEikApplication& aApp )
00035     {
00036     CLongTapDetectorExDoc* self = new ( ELeave ) CLongTapDetectorExDoc( aApp );
00037     CleanupStack::PushL( self );
00038     self->ConstructL();
00039     return self;
00040     }
00041 
00042 // -----------------------------------------------------------------------------
00043 // CLongTapDetectorExDoc::ConstructL()
00044 // Symbian 2nd phase constructor can leave.
00045 // -----------------------------------------------------------------------------
00046 //
00047 void CLongTapDetectorExDoc::ConstructL()
00048     {
00049         // no implementation required
00050     }    
00051 
00052 // -----------------------------------------------------------------------------
00053 // CLongTapDetectorExDoc::CLongTapDetectorExDoc()
00054 // C++ default constructor can NOT contain any code, that might leave.
00055 // -----------------------------------------------------------------------------
00056 //
00057 CLongTapDetectorExDoc::CLongTapDetectorExDoc( CEikApplication& aApp ) : CAknDocument( aApp ) 
00058     {
00059         // no implementation required
00060     }
00061 
00062 // ---------------------------------------------------------------------------
00063 // CLongTapDetectorExDoc::~CLongTapDetectorExDoc()
00064 // Destructor.
00065 // ---------------------------------------------------------------------------
00066 //
00067 CLongTapDetectorExDoc::~CLongTapDetectorExDoc()
00068     {
00069         // no implementation required
00070     }
00071 
00072 // ---------------------------------------------------------------------------
00073 // CLongTapDetectorExDoc::CreateAppUiL()
00074 // Constructs CreateAppUi.
00075 // ---------------------------------------------------------------------------
00076 //
00077 CEikAppUi* CLongTapDetectorExDoc::CreateAppUiL()
00078     {
00079     // Create the application user interface, and return a pointer to it,
00080     // the framework takes ownership of this object
00081     CEikAppUi* appUi = new ( ELeave ) CLongTapDetectorExAppUi;
00082     return appUi;
00083     }
00084 

© Nokia 2009

Back to top