PrevNextUpHome BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1
SFCApplication
Class for an application without responder.
#include <SFCApplication.h.hpp>
class SFCApplication : public SFCInvoker;
SFMTYPEDEFCLASS(SFCApplication)

Inheritance diagram

 Inheritance diagram of SFCApplicationClass

Collaboration diagram

 Collaboration diagram of SFCApplicationClass

Description

This class is used to create a application without responder.

Reference

SFRApplication

Member

Constructor/Destructor
SFCApplication( Void )
Constructor of SFCApplication class.
~SFCApplication( Void )
Destructor of SFCApplication class.
Public Functions
static
AEECLSID
GetClassID( Void )
Get the ClassID of application.
static
SFCApplicationPtr
GetInstance( Void )
Get the instance of application.
Bool Invoke( SFXEventConstRef event )
Send the specified event.
static
SFCError
Terminate( Bool idle = false )
Terminate the application.

SFCApplication::SFCApplication
Constructor of SFCApplication class.
[ protected, explicit ]
SFCApplication(Void);

SFCApplication::~SFCApplication
Destructor of SFCApplication class.
[ protected, virtual ]
~SFCApplication(Void);

SFCApplication::GetClassID
Get the ClassID of application.
[ public, static ]
AEECLSID GetClassID(Void);

SFCApplication::GetInstance
Get the instance of application.
[ public, static ]
SFCApplicationPtr GetInstance(Void);

Return value

[Note] Note

The SFCApplication::GetInstance function calls the GETAPPINSTANCE function of BREW API internally

Therefore, when the return value of GETAPPINSTANCE function is null, that of SFCApplication::GetInstance function is also null.


SFCApplication::Invoke
Send the specified event.
[ public, virtual ]
Bool Invoke(
    SFXEventConstRef event   // event
);

Return value

  • If the specified event is handled : true
  • Otherwise : false

Description

To change the method to handle the specified event, override the SFCApplication::Invoke function.

Reference

SFCInvoker


SFCApplication::Terminate
Terminate the application.
[ public, static ]
SFCError Terminate(
    Bool idle = false   // whether or not to terminate all the BREW application (this argument is effect only on a real device)
);

Return value

  • Success : SFERR_NO_ERROR
  • Otherwise : SFERR_FAILED

Description

The SFCApplication::Terminate function terminates the BREW applications that are currently active.

If the "idle" argument is set to true, all the BREW applications are terminated and the screen to wait for call appears.

If the "idle" argument is set to false, only the BREW applications that are currently active are terminated and the screen to select a BREW application appears.

Reference

BREW API ISHELL_CloseApplet