sipexapp.cpp

来自「an example for sip for symbian」· C++ 代码 · 共 95 行

CPP
95
字号
/*
* ==============================================================================
*  Name        : SIPExApp.cpp
*  Part of     : SIPEx
*  Interface   : 
*  Description : 
*  Version     : 
*
*  Copyright (c) 2004-2006 Nokia Corporation.
*  This material, including documentation and any related 
*  computer programs, is protected by copyright controlled by 
*  Nokia Corporation.
* ==============================================================================
*/

// INCLUDE FILES

#include    "SIPExApp.h"
#include    "SIPExDoc.h"

#ifdef EKA2
#include <eikstart.h>
#endif

    
// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSIPExApp::CreateDocumentL
// Creates a document and returns a pointer to it
// -----------------------------------------------------------------------------
//
CApaDocument* CSIPExApp::CreateDocumentL()
    {      
    CApaDocument* document = CSIPExDoc::NewL( *this );
    return document;
    }

// -----------------------------------------------------------------------------
// CSIPExApp::AppDllUid
// Returns the UID for the SIPEx application
// -----------------------------------------------------------------------------
//
TUid CSIPExApp::AppDllUid() const
    {
    // Return the UID for the SIP Example game application
    return KUidSIPExApp;
    }

// ========================== OTHER EXPORTED FUNCTIONS =========================

// -----------------------------------------------------------------------------
// NewApplication() implements the creation of the application class
// Creates an application, and return a pointer to it
// Returns: CApaApplication*: Pointer to the application class instance
// -----------------------------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication() 
    {
    CApaApplication* app = new CSIPExApp;
    return app;
    }

#ifdef EKA2

// -----------------------------------------------------------------------------
// E32Main() is the entry point to the application DLL in application 
// framework V2
// Returns: TInt:   Error if starting the app trough framework wasn't succesful
// -----------------------------------------------------------------------------
//
GLDEF_C TInt E32Main()
    {
    return EikStart::RunApplication( NewApplication );
    }
    
#else

// -----------------------------------------------------------------------------
// E32Dll() is the entry point to the application DLL
// DLL entry point in EKA1
// Returns: TInt:   Always KErrNone
// -----------------------------------------------------------------------------
//
GLDEF_C TInt E32Dll( TDllReason /*aReason*/ )
    {
    return KErrNone;
    }
    
#endif // EKA2


// End of file

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?