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

📄 program.h

📁 在手机操作系统symbina上使用的一个脚本扩展语言的代码实现,可以参考用于自己的开发
💻 H
字号:
// PROGRAM.H
//
// Copyright (c) 1997-2002 Symbian Ltd. All rights reserved.

#ifndef __PROGRAM_H__
#define __PROGRAM_H__

#include <e32std.h>
#include <texttran.h>
#include <charconv.h>

IMPORT_C TPtrC DebuggerDllFilename();
IMPORT_C TFileName RuntimeResourceFile();

class COplRuntimeCharConv: public CBase
	{
public:
	IMPORT_C static HBufC16* ConvertFromNarrowToUnicodeL(const TDesC8& aNarrowString,const TUint aCharacterSet=KCharacterSetIdentifierAscii);
	IMPORT_C static HBufC16* ConvertFromNarrowToUnicodeLC(const TDesC8& aNarrowString,const TUint aCharacterSet=KCharacterSetIdentifierAscii);
	IMPORT_C static HBufC8* ConvertFromUnicodeToNarrowL(const TDesC16& aUnicodeString,const TUint aCharacterSet=KCharacterSetIdentifierAscii);
	IMPORT_C static HBufC8* ConvertFromUnicodeToNarrowLC(const TDesC16& aUnicodeString,const TUint aCharacterSet=KCharacterSetIdentifierAscii);
	};

class TRuntimeResBuf
	{
public:
	TInt  iError;           // runtime error or KErrNone if no error
	TInt  iProcLineNumber;  // line number of the procedure in the source module ( from OPO Module)
	TUint iOffset;          // Q code offset to runtime error within proc
	TBuf<80> iErrMsg;       // runtime error string
	TFileName iSrcFile;		// to take source file name causing error
	TBuf<32> iProcName;		// to take name of procedure causing error
	CTextTranslator::TDebugFlag iDebugFlag;
	};

// for TRuntimeParams::iFlags
const TInt KRuntimeFlagsSignal=0x1; /* signal on completion */
const TInt KRuntimeFlagsNotify=0x2; /* call notifier on error */

// Runtime commands for command-line
const TInt KOplrCommandRunFromEditor='E';
const TInt KOplrCommandRunFromDebugger='D';
const TInt KOplrCommandRunNoIPC='R';

class TRuntimeParams
	{       /* used to pass extra command-line parameters to OPLR.APP */
public:
	TInt  iFlags;                  /* mode information */
	TThreadId  iOwnerThreadId;     /* requestor process id */
	TDes* iResultOffset;			/* result buffer offset */
	TInt iOwnerWindowGroup;			/* requestor window group identifier */
	};

#endif

⌨️ 快捷键说明

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