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

📄 ldcno17songdocument.cpp

📁 Symbian多视图下实现菜单的隐藏
💻 CPP
字号:
/* Copyright (c) 2008, Nokia. All rights reserved */

#include "Ldcno17songAppUi.h"
#include "Ldcno17songDocument.h"
#include "AddressBook.h"	// 实例化一个CAddressBook对象,做申明;


CLdcno17songDocument* CLdcno17songDocument::NewL(CEikApplication& aApp)
    {
    CLdcno17songDocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
    }

CLdcno17songDocument* CLdcno17songDocument::NewLC(CEikApplication& aApp)
    {
    CLdcno17songDocument* self = new (ELeave) CLdcno17songDocument(aApp);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

void CLdcno17songDocument::ConstructL()
    {
    // Add any construction that can leave here
	_LIT(KNAME, "songzhihong");
	_LIT(KTEL, "13601162024");
	_LIT(KEMAIL, "szh372002@yahoo.com.cn");
	_LIT(KADD, "beijingshixidan");
 	m_pAddBook = CAddressBook::NewL(KNAME, KTEL, KEMAIL, KADD);		// 实例化一个CAddressBook对象,做申明;
    }    

CLdcno17songDocument::CLdcno17songDocument(CEikApplication& aApp) : CAknDocument(aApp) 
    {
    // Add any construction that can not leave here
    }   

CLdcno17songDocument::~CLdcno17songDocument()
    {
    // Any destruction code here
	m_pAddBook->Distroy();				// 增加析构
    }

CEikAppUi* CLdcno17songDocument::CreateAppUiL()
    {
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return (static_cast<CEikAppUi*>(new (ELeave) CLdcno17songAppUi));
    }


CAddressBook* CLdcno17songDocument::GetAddRess()  // 对CEikAppUi* CreateAppUiL()实现;
{
	return m_pAddBook;
}

⌨️ 快捷键说明

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