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

📄 camdecodedlg.cpp

📁 PartiTekSDK.chm is for windows, Unix/Linux and WinCE/WinMobile platform. SDK_Manul_Symbian.pdf i
💻 CPP
字号:
/*
============================================================================
 Name        : CamDecodeDlg.cpp
 Author      : Augusta
 Version     :
 Copyright   : All rights reserved
 Description : CCamDecodeDlg implementation
============================================================================
*/

#include "CamDecodeDlg.h"
#include <eiklabel.h>
#include <avkon.hrh>
#include "CamDecode_3rd.rsg"
#include "CamDecode_3rd.hrh"
#include <libc\string.h>
#include <eikdialg.h>

CCamDecodeDlg::CCamDecodeDlg()
{
	// No implementation required
}

void CCamDecodeDlg::PreLayoutDynInitL()
{
	CEikLabel* iLabel  = static_cast<CEikLabel*>(ControlOrNull(EInfomation));
	if(iLabel)
	{
		TBuf8<512>  buf8;
		TBuf16<512> buf16;
		buf8.Copy( (const unsigned char*)iInfo, strlen(iInfo) );
		buf16.Copy(buf8);
		iLabel->SetTextL(buf16);
	}

}

CCamDecodeDlg::~CCamDecodeDlg()
{
	if (iInfo)
	delete  iInfo;
}

CCamDecodeDlg* CCamDecodeDlg::NewLC()
{
	CCamDecodeDlg* self = new (ELeave)CCamDecodeDlg();
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
}

CCamDecodeDlg* CCamDecodeDlg::NewL()
{
	CCamDecodeDlg* self=CCamDecodeDlg::NewLC();
	CleanupStack::Pop(); // self;
	return self;
}

void CCamDecodeDlg::ConstructL()
{

}

TBool CCamDecodeDlg::OkToExitL( TInt aButtonId )
{
	    // Translate the button presses into commands for the appui to handle
    if ( aButtonId == EAknSoftkeyOptions )
        {
       // iAvkonAppUi->ProcessCommandL( EAknSoftkeyOptions );
        }
    else if ( aButtonId == EAknSoftkeyExit )
        {
       // iAvkonAppUi->ProcessCommandL( EEikCmdExit );
        }

    return EFalse;
}

TBool CCamDecodeDlg::RunDlgLD(char* aInfo)
{
	int len=strlen(aInfo);
	int i;
	iInfo=new(ELeave)char[len+1];
	for(i=0;i<len;i++)
		iInfo[i]=aInfo[i];
	iInfo[i]=0;
	
	return this->ExecuteLD(R_CAMDECODE_DLG);
}

⌨️ 快捷键说明

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