⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sipexapp.cpp

📁 an example for sip for symbian
💻 CPP
字号:
/*
* ==============================================================================
*  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -