iapconnectapp.cpp

来自「symbian中如何取得内部联网方式」· C++ 代码 · 共 91 行

CPP
91
字号
/*
* ============================================================================
*  Name     : CIAPConnectApp from IAPConnectApp.cpp
*  Part of  : Internet Access Points Example v2.0
*  Created  : 01.09.2006 by Forum Nokia
*  Version  : 2.0
*  Copyright: Forum Nokia
* ============================================================================
*/

// INCLUDE FILES
#ifdef __SERIES60_3X__
    #include <eikstart.h>
#endif

#include "IAPConnectApp.h"
#include "IAPConnectDocument.h"

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

// ---------------------------------------------------------------------------
// CIAPConnectApp::AppDllUid()
//
// Returns application UID
// ---------------------------------------------------------------------------
//
TUid CIAPConnectApp::AppDllUid() const
    {
    return KUidIAPConnect;
    }

   
// ---------------------------------------------------------------------------
// CIAPConnectApp::CreateDocumentL()
//
// Creates CIAPConnectDocument object
// ---------------------------------------------------------------------------
//
CApaDocument* CIAPConnectApp::CreateDocumentL()
    {
    return CIAPConnectDocument::NewL( *this );
    }

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

#ifdef __SERIES60_3X__  //////////// 3rd Ed
// ---------------------------------------------------------------------------
// NewApplication() (3rd Edition)
//
// Constructs CIAPConnectApp
// Returns: created application object
// ---------------------------------------------------------------------------
//
LOCAL_C CApaApplication* NewApplication()
	{
	return new CIAPConnectApp;
	}

// -----------------------------------------------------------------------------
//	Entry point function for Symbian Apps (3rd Edition)
// -----------------------------------------------------------------------------
GLDEF_C TInt E32Main()
	{
	return EikStart::RunApplication( NewApplication );
	}

#else /////////// 2nd Ed

// ---------------------------------------------------------------------------
// NewApplication() (2nd Edition) 
//
// Constructs CIAPConnectApp
// Returns: created application object
// ---------------------------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication()
    {
    return new CIAPConnectApp;
    }
// -----------------------------------------------------------------------------
//  Entry point function for Symbian Apps (2nd Edition )
// -----------------------------------------------------------------------------
GLDEF_C TInt E32Dll( TDllReason )
	{
	return KErrNone;
	}
#endif
// End of File  

⌨️ 快捷键说明

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