PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFXBaseEditor
Base class to edit the native text input control of the standard BREW.
#include <SFXBaseEditor.h.hpp>
class SFXBaseEditor;
<link linkend="sec.macro.core.typedef.SFMTYPEDEFCLASS">SFMTYPEDEFCLASS</link>(SFXBaseEditor)
        

Collaboration diagram

 Collaboration diagram of SFXBaseEditorClass

Description

SFXEditor is the base class with which you can use the text input control of the standard BREW (i.e., BREW API ITextCtl and BREW API IMenuCtl) easily by encapsulation.

In SophiaFramework UNIVERSE, processing of the text input control of the standard BREW is encapsulated into the SFXBaseEditor, SFXEditor, and SFXEditProperty classes. It is enough that the same one kind of code has only to be programmed regardless of BREW SDK version, simulator, and device.

Reference

SFXEditor | SFXEditProperty | BREW API ITextCtl | BREW API IMenuCtl | BREW API AEETextInputMode

Member

Constructor/Destructor
SFXBaseEditor( Void )
Constructor of the SFXBaseEditor class.
~SFXBaseEditor( Void )
Destructor of the SFXBaseEditor class.
Public Functions
AEECLSID GetSFBMenuCtlClassID( Void )
Get the Class ID of the menu control of the text input control of the standard BREW.
AEECLSID GetSFBTextCtlClassID( Void )
Get the Class ID of the text input control of the standard BREW.
SFCError Open( SFXEditPropertyPtr property , CallbackSPP spp , VoidPtr reference )
Open the text input control of the standard BREW.
Void SetSFBMenuCtlClassID( AEECLSID param )
Set the Class ID of the menu control of the text input control of the standard BREW.
Void SetSFBTextCtlClassID( AEECLSID param )
Set the Class ID of the text input control of the standard BREW.
Protected Functions
static
SFCError
RegisterBypass( SFCApplication::CallbackSPP spp , VoidPtr reference )
Register the highest priority event handler.
static
Void
UnregisterBypass( SFCApplication::CallbackSPP spp , VoidPtr reference )
Unregister the highest priority event handler.
Types
CallbackSPP
Type of the callback function which will be called when the text input control(FEP) is finished.

SFXBaseEditor::SFXBaseEditor
Constructor of the SFXBaseEditor class.
[ public, explicit ]
SFXBaseEditor(Void);

Description

This constructor performs the initializations as follows:

  1. Set the Class ID of the text input control to AEECLSID_TEXTCTL.
  2. Set the Class ID of the menu control of the text input control to AEECLSID_SOFTKEYCTL.

Reference

BREW API ITextCtl | BREW API IMenuCtl


SFXBaseEditor::~SFXBaseEditor
Destructor of the SFXBaseEditor class.
[ public, virtual ]
~SFXBaseEditor(Void);

SFXBaseEditor::GetSFBMenuCtlClassID
Get the Class ID of the menu control of the text input control of the standard BREW.
[ public, const ]
AEECLSID GetSFBMenuCtlClassID(Void);

Return value

Class ID of the menu control of native BREW text input control

Description

This function gets the Class ID of the menu control of the text input control of the standard BREW set with the SFXBaseEditor::SetSFBMenuCtlClassID function. For more details, see IMenuCtl and ITEXTCTL_SetSoftKeyMenu() of the BREW reference.

Reference

SFXBaseEditor::SetSFBMenuCtlClassID | BREW API IMenuCtl | BREW API ITEXTCTL_SetSoftKeyMenu


SFXBaseEditor::GetSFBTextCtlClassID
Get the Class ID of the text input control of the standard BREW.
[ public, const ]
AEECLSID GetSFBTextCtlClassID(Void);

Return value

Class ID of the native BREW text input control

Description

This function gets the Class ID of the text input control of the standard BREW set with the SFXBaseEditor::SetSFBTextCtlClassID function. For more details, see ITextCtl of the BREW reference.

Reference

SFXBaseEditor::SetSFBTextCtlClassID | BREW API ITextCtl


SFXBaseEditor::Open
Open the text input control of the standard BREW.
[ public, virtual ]
SFCError Open(
    SFXEditPropertyPtr property   // property for the text input control
    CallbackSPP spp               // callback function which will be called when the text input control(FEP) is finished
    VoidPtr reference             // user data which will be passed to the callback function
);

Description

This function must be implemented in the concrete class of the text input control which is newly defined by inheriting from the SFXBaseEditor class.

In the spp argument, the callback function which will be called when the text input finishes is specified.

For the method to implement this function, see the description of the SFXEditor::Open function.

Reference

SFXEditor::Open | SFXBaseEditor::CallbackSPP


SFXBaseEditor::RegisterBypass
Register the highest priority event handler.
[ protected, static ]
SFCError RegisterBypass(
    SFCApplication::CallbackSPP spp   // highest priority event handler
    VoidPtr reference                 // user data
);

Description

SFXBaseEditor::RegisterBypass is the function to register a highest priority event handler into the instance of an application class inheriting from SFCApplication.

[Note] Note
This function is implemented by calling the SFCApplication::RegisterBypass function internally.
[Note] Highest Priority Event Handler

For more details, see the description of the SFCApplication::RegisterBypass function.

Internal Implemenation

The internal implemenation of this function is as follows.

/*protected static*/inline SFCError SFXBaseEditor::RegisterBypass(SFCApplication::CallbackSPP spp, VoidPtr reference)
{
    return SFXEventBypass::Register(spp, reference);
}// SFXBaseEditor::RegisterBypass //

Reference

SFXBaseEditor::UnregisterBypass | SFXEventBypass::Register | SFCApplication::GetInstance


SFXBaseEditor::SetSFBMenuCtlClassID
Set the Class ID of the menu control of the text input control of the standard BREW.
[ public ]
Void SetSFBMenuCtlClassID(
    AEECLSID param   // Class ID of the menu control of the text input control of the standard BREW
);

Description

This function sets the Class ID of the menu control of the text input control of the standard BREW. For more details, see IMenuCtl and ITEXTCTL_SetSoftKeyMenu() of the BREW reference.

Default: AEECLSID_SOFTKEYCTL

Reference

SFXBaseEditor::GetSFBMenuCtlClassID | BREW API IMenuCtl | BREW API ITEXTCTL_SetSoftKeyMenu


SFXBaseEditor::SetSFBTextCtlClassID
Set the Class ID of the text input control of the standard BREW.
[ public ]
Void SetSFBTextCtlClassID(
    AEECLSID param   // Class ID of the text input control of the standard BREW
);

Description

This function sets the Class ID of the text input control of the standard BREW. For more details, see BREW API ITextCtl of the BREW reference.

Default: AEECLSID_TEXTCTL

Reference

SFXBaseEditor::GetSFBTextCtlClassID | BREW API ITextCtl


SFXBaseEditor::UnregisterBypass
Unregister the highest priority event handler.
[ protected, static ]
Void UnregisterBypass(
    SFCApplication::CallbackSPP spp   // highest priority event handler
    VoidPtr reference                 // user data
);

Description

SFXBaseEditor::UnregisterBypass is the function to unregister a highest priority event handler from the instance of an application class inheriting from SFCApplication.

[Note] Note
This function is implemented by calling the SFCApplication::UnregisterBypass function internally.
[Note] Highest Priority Event Handler

For more details, see the description of the SFCApplication::RegisterBypass function.

Reference

SFXBaseEditor::RegisterBypass | SFXEventBypass::Unregister | SFCApplication::UnregisterBypass


SFXBaseEditor::CallbackSPP
Type of the callback function which will be called when the text input control(FEP) is finished.
typedef Void(*) SFXBaseEditor::CallbackSPP(SFCError error, VoidPtr reference)

Description

This is the type of the callback function which will be called when the text input control(FEP) is finished, which is specified in the spp argument of the SFXBaseEditor::Open / SFXEditor::Open function.

Reference

SFXBaseEditor::Open | SFXEditor::Open