Nokia N97 SDK
Example Applications Guide

datamobilityapplication.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : datamobilityapplication.cpp
00004 *  Part of     : datamobility
00005 *  Description : Main application class
00006 *
00007 *  Copyright (c) 2007 Nokia Corporation.
00008 *  This material, including documentation and any related
00009 *  computer programs, is protected by copyright controlled by
00010 *  Nokia Corporation.
00011 * ==============================================================================
00012 */
00013 
00014 // INCLUDE FILES
00015 #include "datamobility.hrh"
00016 #include "datamobilitydocument.h"
00017 #include "datamobilityapplication.h"
00018 
00019 // ============================ MEMBER FUNCTIONS ===============================
00020 
00021 // UID for the application
00022 // this should correspond to the uid defined in the mmp file
00023 const TUid KUidDataMobilityApp = { _UID3 };
00024 
00025 // -----------------------------------------------------------------------------
00026 // CDataMobilityApplication::CreateDocumentL()
00027 // Creates CApaDocument object
00028 // -----------------------------------------------------------------------------
00029 //
00030 CApaDocument* CDataMobilityApplication::CreateDocumentL()
00031     {
00032     // Create an datamobility document, and return a pointer to it
00033     return ( static_cast<CApaDocument*>
00034                     ( CDataMobilityDocument::NewL( *this ) ) );
00035     }
00036 
00037 // -----------------------------------------------------------------------------
00038 // CDataMobilityApplication::AppDllUid()
00039 // Returns application UID
00040 // -----------------------------------------------------------------------------
00041 //
00042 TUid CDataMobilityApplication::AppDllUid() const
00043     {
00044     // Return the UID for the datamobility application
00045     return KUidDataMobilityApp;
00046     }
00047 
00048 // End of File

© Nokia 2009

Back to top