Back to index

im-sdk  12.3.91
Public Types | Public Member Functions | Private Attributes | Friends
IMDescriptor Class Reference

#include <IMBasicObject.hh>

Inheritance diagram for IMDescriptor:
Inheritance graph
[legend]
Collaboration diagram for IMDescriptor:
Collaboration graph
[legend]

List of all members.

Public Types

enum  OBJTYPE {
  UNKNOWN, OPERATION = 1, NUMBER_VARIABLE = 2, BOOL_VARIABLE = 3,
  CHAR_VARIABLE = 4, MTEXT_VARIABLE = 5, EVENT_VARIABLE = 6, NUMBER_PROPERTY = 0x12,
  BOOL_PROPERTY = 0x13, CHAR_PROPERTY = 0x14, MTEXT_PROPERTY = 0x15, EVENT_PROPERTY = 0x16,
  DOWNLOADABLE_OBJ_MASK = 0x80, EIMIL_CONFIG = 0x81, IMDESCRIPTOR = 0x82, BINARY_GUI = 0x83,
  BINARY_LWE = 0x84, JAVA_GUI = 0x85, JAVA_LWE = 0x86, SCRIPT_GUI = 0x87,
  SCRIPT_LWE = 0x88
}
enum  OBJCATEGORY {
  UNKNOWN_OBJECT = -1, GUI_OBJECT = 0, LWE_OBJECT = 1, SYNTAX_RULE_OBJECT = 2,
  IM_MANAGER_RULE_OBJECT = 3, PRELOADING_LWE_OBJECT = 4
}

Public Member Functions

const u16stringget_imname () const
const u16stringget_hrn () const
const IMLangListget_languages () const
const IMImeInfoListget_imeinfos () const
const IMHotkeyProfileStructget_hotkey_profile () const
 IMDescriptor (const u16string &imname, const u16string &hrn, const string &domainname, const IMLangList &langs, const IMImeInfoList &imeinfos, IMHotkeyProfileStruct *hkps)
CARD16BIT get_attribid () const
CARD32BIT get_fullid () const
bool downloadablep () const
enum OBJTYPE get_type () const
enum OBJCATEGORY get_category () const

Private Attributes

u16string imname
u16string hrn
string domainname
IMLangList langs
IMImeInfoList imeinfos
const IMHotkeyProfileStructhotkey_profile

Friends

class IMDescriptorMatchPredicate

Detailed Description

Definition at line 194 of file IMBasicObject.hh.


Member Enumeration Documentation

enum IMObject::OBJCATEGORY [inherited]
Enumerator:
UNKNOWN_OBJECT 
GUI_OBJECT 
LWE_OBJECT 
SYNTAX_RULE_OBJECT 
IM_MANAGER_RULE_OBJECT 
PRELOADING_LWE_OBJECT 

Definition at line 162 of file IMBasicObject.hh.

enum IMObject::OBJTYPE [inherited]
Enumerator:
UNKNOWN 
OPERATION 
NUMBER_VARIABLE 
BOOL_VARIABLE 
CHAR_VARIABLE 
MTEXT_VARIABLE 
EVENT_VARIABLE 
NUMBER_PROPERTY 
BOOL_PROPERTY 
CHAR_PROPERTY 
MTEXT_PROPERTY 
EVENT_PROPERTY 
DOWNLOADABLE_OBJ_MASK 
EIMIL_CONFIG 
IMDESCRIPTOR 
BINARY_GUI 
BINARY_LWE 
JAVA_GUI 
JAVA_LWE 
SCRIPT_GUI 
SCRIPT_LWE 

Definition at line 135 of file IMBasicObject.hh.


Constructor & Destructor Documentation

IMDescriptor::IMDescriptor ( const u16string imname,
const u16string hrn,
const string &  domainname,
const IMLangList langs,
const IMImeInfoList imeinfos,
IMHotkeyProfileStruct hkps 
)

Definition at line 123 of file IMBasicObject.cpp.

  : IMObject(IMObject::IMDESCRIPTOR, false), imname(x_imname), hrn(x_hrn),
    domainname(x_domainname), langs(x_langs), imeinfos(x_imeinfos), hotkey_profile(hkps)
{
}

Member Function Documentation

bool IMObject::downloadablep ( ) const [inline, inherited]

Definition at line 186 of file IMBasicObject.hh.

    { return downloadable; }

Here is the caller graph for this function:

CARD16BIT IMObject::get_attribid ( ) const [inline, inherited]

Definition at line 179 of file IMBasicObject.hh.

    {
       if (!downloadablep()) return 0;
       return ((id & ((1 << 15) - 1)) | (1 << 15));
    }

Here is the call graph for this function:

Here is the caller graph for this function:

enum IMObject::OBJCATEGORY IMObject::get_category ( ) const [inherited]

Definition at line 14 of file IMBasicObject.cpp.

{
    enum OBJTYPE retval;

    retval = get_type();
    if (retval == EIMIL_CONFIG) {
       return SYNTAX_RULE_OBJECT;
    } else if (retval == JAVA_GUI ||
              retval == BINARY_GUI ||
              retval == SCRIPT_GUI) {
       return GUI_OBJECT;
    } else if (retval == BINARY_LWE ||
              retval == JAVA_LWE ||
              retval == SCRIPT_LWE) {
       return LWE_OBJECT;
    } else if (retval == UNKNOWN ||
              retval == IMDESCRIPTOR ||
              retval == OPERATION ||
              retval == NUMBER_VARIABLE ||
              retval == BOOL_VARIABLE ||
              retval == CHAR_VARIABLE ||
              retval == MTEXT_VARIABLE ||
              retval == EVENT_VARIABLE ||
              retval == NUMBER_PROPERTY ||
              retval == BOOL_PROPERTY ||
              retval == CHAR_PROPERTY ||
              retval == MTEXT_PROPERTY ||
              retval == EVENT_PROPERTY) {
       return UNKNOWN_OBJECT;
    } else {
       ERROR_INTERNAL("Invalid object type.");
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

CARD32BIT IMObject::get_fullid ( ) const [inline, inherited]

Definition at line 184 of file IMBasicObject.hh.

    { return id; }

Definition at line 212 of file IMBasicObject.hh.

    { return hotkey_profile; }
const u16string& IMDescriptor::get_hrn ( ) const [inline]

Definition at line 206 of file IMBasicObject.hh.

    { return hrn; }
const IMImeInfoList* IMDescriptor::get_imeinfos ( ) const [inline]

Definition at line 210 of file IMBasicObject.hh.

    { return &imeinfos; }
const u16string& IMDescriptor::get_imname ( ) const [inline]

Definition at line 204 of file IMBasicObject.hh.

    { return imname; }
const IMLangList* IMDescriptor::get_languages ( ) const [inline]

Definition at line 208 of file IMBasicObject.hh.

    { return &langs; }
enum OBJTYPE IMObject::get_type ( ) const [inline, inherited]

Definition at line 188 of file IMBasicObject.hh.

    { return type; }

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class IMDescriptorMatchPredicate [friend]

Definition at line 223 of file IMBasicObject.hh.


Member Data Documentation

string IMDescriptor::domainname [private]

Definition at line 198 of file IMBasicObject.hh.

Definition at line 201 of file IMBasicObject.hh.

Definition at line 197 of file IMBasicObject.hh.

Definition at line 200 of file IMBasicObject.hh.

Definition at line 196 of file IMBasicObject.hh.

Definition at line 199 of file IMBasicObject.hh.


The documentation for this class was generated from the following files: