前のページ次のページ上に戻るホーム BREW C++ ライブラリ & GUI フレームワーク & XML ミドルウェア : SophiaFramework 4.1
SFXDevice
AEEDevice 構造体を使いやすくしたクラスです。
#include <SFXDevice.h.hpp>
class SFXDevice;
SFMTYPEDEFCLASS(SFXDevice)

解説

IShell インターフェースに問い合わせなくても、SFXDevice クラスのインスタンスを作成するだけで、 デバイス情報を取得できます。

SFXDevice device;

UInt16 n1 = device.GetScreenWidth();            // 画面の幅をピクセル数で取得する
UInt16 n2 = device.GetScreenHeight();           // 画面の高さをピクセル数で取得する
SFXSize size1 = device.GetScreenSize();         // 画面の幅と高さをピクセル数で取得する
UInt16 n3 = device.GetAlternateScreenWidth();   // 第 2 画面の幅をピクセル数で取得する
UInt16 n4 = device.GetAlternateScreenHeight();  // 第 2 画面の高さをピクセル数で取得する
SFXSize size2 = device.GetAlternateScreenSize();// 第 2 画面の幅と高さをピクセル数で取得する
UInt16 n5 = device.GetScrollBarWidth();         // 標準スクロール バーの幅をピクセル数で取得する
UInt16 n6 = device.GetEncoding();               // 文字セットのエンコード方式を取得する
UInt16 n7 = device.GetMenuTextScrollingTime();  // AEEDevice構造体の、wMenuTextScroll メンバの値を取得する
UInt16 n8 = device.GetColorDepth();             // 画面の色深度を取得する
UInt16 n9 = device.GetMenuImageDelay();         // AEEDevice 構造体の、wMenuImageDelayメンバの値を取得する
UInt16 n10 = device.GetRAMSize();               // 搭載されている RAM の容量を取得する
Bool b1 = device.HasAlternateDisplay();         // デバイスが代替ディスプレイ ( ページャ ) を持っているか判定する
Bool b2 = device.HasFlip();                     // デバイスが折り畳み式携帯電話であるか判定する
Bool b3 = device.HasVibrator();                 // バイブレータが搭載されているか判定する
Bool b4 = device.HasExternalSpeaker();          // 外部スピーカーが搭載されているか判定する
Bool b5 = device.SupportsVoiceRecognition();    // 音声認識をサポートしているか判定する
Bool b6 = device.SupportsPositionLocation();    // ポジション ロケーションをサポートしているか判定する
Bool b7 = device.SupportsMIDI();                // MIDI ファイル形式をサポートしているか判定する
Bool b8 = device.SupportsCMX();                 // CMX オーディオをサポートしているか判定する
Bool b9 = device.SupportsPen();                 // ペンデバイスをサポートしているか判定する
UInt16 n11 = device.GetPromptProperties();      // デフォルト プロンプトのプロパティを取得する
UInt16 n12 = device.GetCloseAppKey();           // 現在アクティブなアプリを閉じるキーを取得する
UInt16 n13 = device.GetCloseAllAppsKey();       // 全てのアプリを閉じるキーを取得する
UInt16 n14 = device.GetLanguage();              // ISO で定義された言語 ID を返する
UInt16 n15 = device.GetNetLingerTime();         // PPP 待機時間をミリ秒単位で取得する
UInt16 n16 = device.GetSleepDeferTime();        // デバイスがスリープ モードになるまでの時間をミリ秒単位で取得する
UInt16 n17 = device.GetMaximumPathLength();     // デバイスでサポートされている、( パス名を含む )ファイル名の最大長を取得する
UInt16 n18 = device.GetPlatformID();            // デバイス プラットフォームを一意に識別するための ID を取得する

参照

BREW API AEEDevice | SFBShell::GetDeviceInfo | SFBShell::GetDeviceInfoEx

メンバ

コンストラクタ/デストラクタ
SFXDevice( Void )
SFXDevice クラスのコンストラクタです。
パブリック関数
UInt16 GetAlternateScreenHeight( Void )
第 2 画面の高さをピクセル数で取得します。
SFXSize GetAlternateScreenSize( Void )
第 2 画面の幅と高さをピクセル数で取得します。
UInt16 GetAlternateScreenWidth( Void )
第 2 画面の幅をピクセル数で取得します。
UInt16 GetCloseAllAppsKey( Void )
全てのアプリを閉じるキーを取得します。
UInt16 GetCloseAppKey( Void )
現在アクティブなアプリを閉じるキーを取得します。
UInt16 GetColorDepth( Void )
画面の色深度を取得します。
UInt16 GetEncoding( Void )
文字セットのエンコード方式を取得します。
UInt32 GetLanguage( Void )
ISO で定義された言語 ID を取得します。
UInt16 GetMaximumPathLength( Void )
デバイスでサポートされている、(パス名を含む)ファイル名の最大長を取得します。
UInt32 GetMenuImageDelay( Void )
AEEDevice 構造体の、wMenuImageDelayメンバの値を取得します。
UInt16 GetMenuTextScrollingTime( Void )
AEEDevice構造体の、wMenuTextScroll メンバの値を取得します。
UInt32 GetNetLingerTime( Void )
PPP 待機時間をミリ秒単位で取得します。
UInt32 GetPlatformID( Void )
デバイス プラットフォームを一意に識別するための ID を取得します。
UInt32 GetPromptProperties( Void )
デフォルト プロンプトのプロパティを取得します。
UInt32 GetRAMSize( Void )
搭載されている RAM の容量を取得します。
UInt16 GetScreenHeight( Void )
画面の高さをピクセル数で取得します。
SFXSize GetScreenSize( Void )
画面の幅と高さをピクセル数で取得します。
UInt16 GetScreenWidth( Void )
画面の幅をピクセル数で取得します。
UInt16 GetScrollBarWidth( Void )
標準スクロール バーの幅をピクセル数で取得します。
UInt32 GetSleepDeferTime( Void )
デバイスがスリープ モードになるまでの時間をミリ秒単位で取得します。
Bool HasAlternateDisplay( Void )
デバイスが代替ディスプレイ (ページャ) を持っているか判定します。
Bool HasExternalSpeaker( Void )
外部スピーカーが搭載されているか判定します。
Bool HasFlip( Void )
デバイスが折り畳み式携帯電話であるか判定します。
Bool HasVibrator( Void )
バイブレータが搭載されているか判定します。
Bool SupportsCMX( Void )
CMX オーディオをサポートしているか判定します。
Bool SupportsMIDI( Void )
MIDI ファイル形式をサポートしているか判定します。
Bool SupportsPen( Void )
ペンデバイスをサポートしているか判定します。
Bool SupportsPositionLocation( Void )
ポジション ロケーションをサポートしているか判定します。
Bool SupportsVoiceRecognition( Void )
音声認識をサポートしているか判定します。
static
SFXDeviceConstRef
ZeroInstance( Void )
0 を表すインスタンスを取得します。

SFXDevice::SFXDevice
SFXDevice クラスのコンストラクタです。
[ public, explicit ]
SFXDevice(Void);

解説

BREW シェルに問い合わせてデバイス情報を取得し、SFXDevice クラスを生成します。 内部ではシェル インスタンスを取得した後、デバイス情報を取得しています。

使用例

デバイスの画面サイズを取得します。

SFXDevice devinfo;
SFXSize devSize = devinfo.GetScreenSize();

SFXDevice::GetAlternateScreenHeight
第 2 画面の高さをピクセル数で取得します。
[ public, const ]
UInt16 GetAlternateScreenHeight(Void);

参照

SFXDevice::GetAlternateScreenWidth


SFXDevice::GetAlternateScreenSize
第 2 画面の幅と高さをピクセル数で取得します。
[ public, const ]
SFXSize GetAlternateScreenSize(Void);

参照

SFXDevice::GetAlternateScreenWidth | SFXDevice::GetAlternateScreenHeight


SFXDevice::GetAlternateScreenWidth
第 2 画面の幅をピクセル数で取得します。
[ public, const ]
UInt16 GetAlternateScreenWidth(Void);

参照

SFXDevice::GetAlternateScreenHeight


SFXDevice::GetCloseAllAppsKey
全てのアプリを閉じるキーを取得します。
[ public, const ]
UInt16 GetCloseAllAppsKey(Void);

解説

デフォルトのキーは AVK_END です。

参照

SFXDevice::GetCloseAppKey


SFXDevice::GetCloseAppKey
現在アクティブなアプリを閉じるキーを取得します。
[ public, const ]
UInt16 GetCloseAppKey(Void);

参照

SFXDevice::GetCloseAllAppsKey


SFXDevice::GetColorDepth
画面の色深度を取得します。
[ public, const ]
UInt16 GetColorDepth(Void);

戻り値

例えば、モノクロであれば 1 を、グレースケールであれば 2 を、 256 色であれば 8 を返します。


SFXDevice::GetEncoding
文字セットのエンコード方式を取得します。
[ public, const ]
UInt16 GetEncoding(Void);

戻り値

次の値を返します。

AEE_ENC_UNICODE
AEE_ENC_UNICODE2
AEE_ENC_KSC5601
AEE_ENC_EUC_KR
AEE_ENC_KSC5601
AEE_ENC_S_JIS
AEE_ENC_EUC_CN
OEM_RAW_TEXT
AEE_ENC_UTF8
AEE_ENC_ISOLATIN1

これらの値は BREW SDK の AEEShell.h 内で定義されています。


SFXDevice::GetLanguage
ISO で定義された言語 ID を取得します。
[ public, const ]
UInt32 GetLanguage(Void);

SFXDevice::GetMaximumPathLength
デバイスでサポートされている、(パス名を含む)ファイル名の最大長を取得します。
[ public, const ]
UInt16 GetMaximumPathLength(Void);

SFXDevice::GetMenuImageDelay
AEEDevice 構造体の、wMenuImageDelayメンバの値を取得します。
[ public, const ]
UInt32 GetMenuImageDelay(Void);

SFXDevice::GetMenuTextScrollingTime
AEEDevice構造体の、wMenuTextScroll メンバの値を取得します。
[ public, const ]
UInt16 GetMenuTextScrollingTime(Void);

SFXDevice::GetNetLingerTime
PPP 待機時間をミリ秒単位で取得します。
[ public, const ]
UInt32 GetNetLingerTime(Void);

SFXDevice::GetPlatformID
デバイス プラットフォームを一意に識別するための ID を取得します。
[ public, const ]
UInt32 GetPlatformID(Void);

SFXDevice::GetPromptProperties
デフォルト プロンプトのプロパティを取得します。
[ public, const ]
UInt32 GetPromptProperties(Void);

SFXDevice::GetRAMSize
搭載されている RAM の容量を取得します。
[ public, const ]
UInt32 GetRAMSize(Void);

SFXDevice::GetScreenHeight
画面の高さをピクセル数で取得します。
[ public, const ]
UInt16 GetScreenHeight(Void);

参照

SFXDevice::GetScreenWidth


SFXDevice::GetScreenSize
画面の幅と高さをピクセル数で取得します。
[ public, const ]
SFXSize GetScreenSize(Void);

参照

SFXDevice::GetScreenWidth | SFXDevice::GetScreenHeight


SFXDevice::GetScreenWidth
画面の幅をピクセル数で取得します。
[ public, const ]
UInt16 GetScreenWidth(Void);

参照

SFXDevice::GetScreenHeight


SFXDevice::GetScrollBarWidth
標準スクロール バーの幅をピクセル数で取得します。
[ public, const ]
UInt16 GetScrollBarWidth(Void);

SFXDevice::GetSleepDeferTime
デバイスがスリープ モードになるまでの時間をミリ秒単位で取得します。
[ public, const ]
UInt32 GetSleepDeferTime(Void);

SFXDevice::HasAlternateDisplay
デバイスが代替ディスプレイ (ページャ) を持っているか判定します。
[ public, const ]
Bool HasAlternateDisplay(Void);

SFXDevice::HasExternalSpeaker
外部スピーカーが搭載されているか判定します。
[ public, const ]
Bool HasExternalSpeaker(Void);

SFXDevice::HasFlip
デバイスが折り畳み式携帯電話であるか判定します。
[ public, const ]
Bool HasFlip(Void);

SFXDevice::HasVibrator
バイブレータが搭載されているか判定します。
[ public, const ]
Bool HasVibrator(Void);

SFXDevice::SupportsCMX
CMX オーディオをサポートしているか判定します。
[ public, const ]
Bool SupportsCMX(Void);

SFXDevice::SupportsMIDI
MIDI ファイル形式をサポートしているか判定します。
[ public, const ]
Bool SupportsMIDI(Void);

SFXDevice::SupportsPen
ペンデバイスをサポートしているか判定します。
[ public, const ]
Bool upportsPen(Void);

SFXDevice::SupportsPositionLocation
ポジション ロケーションをサポートしているか判定します。
[ public, const ]
Bool SupportsPositionLocation(Void);

SFXDevice::SupportsVoiceRecognition
音声認識をサポートしているか判定します。
[ public, const ]
Bool SupportsVoiceRecognition(Void);

SFXDevice::ZeroInstance
0 を表すインスタンスを取得します。
[ public, static ]
SFXDeviceConstRef ZeroInstance(Void);

解説

内部で管理している AEEDeviceInfo に 0 を設定したインスタンスを返します。