symbianvariant.h

来自「Symbian_OS_code 初学Symbian_OS学习代码, 屏幕截图软」· C头文件 代码 · 共 76 行

H
76
字号
/*
 * symbianvariant.h
 *
 * Copyright 2005 - 2008, Antony Pranata
 * http://www.antonypranata.com
 *
 * Project: Screenshot for Symbian OS.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

//
// This header file defines a lot of flag that indicates the variant
// of Symbian SDKs, for example S60, UIQ, etc.
//
// It has to be copied to \epoc32\include directory of each Symbian SDK
// and has to be customized.
// 

#ifndef SYMBIANVARIANT_H
#define SYMBIANVARIANT_H

//
// Flag to change the target UI, i.e. S60 or UIQ
// This also indicates the version of the SDK.
// For example
//		* In S60:
//			- 100 means S60 SDK 1st Ed      (a.k.a. 0.9)
//			- 101 means S60 SDK 1st Ed FP1  (a.k.a. 1.2)
//			- 200 means S60 SDK 2nd Ed      (a.k.a. 2.0)
//			- 201 means S60 SDK 2nd Ed FP 1 (a.k.a. 2.1)
//			- 202 means S60 SDK 2nd Ed FP 2
//			- 203 means S60 SDK 2nd Ed FP 3
//			- 300 means S60 SDK 3rd Ed
//
//		* In UIQ:
//			- 210 means UIQ SD 2.1
//
#define __S60__	300

// #define __UIQ__	210


//
// Classes declaration that is independent from UI
//

#ifdef __S60__

#define CSymbianApplication	CAknApplication
#define CSymbianDocument	CAknDocument
#define CSymbianAppUi		CAknViewAppUi

#else

#define CSymbianApplication	CQikApplication
#define CSymbianDocument	CQikDocument
#define CSymbianAppUi		CQikAppUi

#endif

#endif // SYMBIANVARIANT_H

// End of File

⌨️ 快捷键说明

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