My Project
SallyAPI::GUI::CApplicationWindow Class Reference

The main class to inherit from when creating a sally application or screensaver (or both). More...

#include <ApplicationWindow.h>

Inheritance diagram for SallyAPI::GUI::CApplicationWindow:
SallyAPI::GUI::CAppBase SallyAPI::GUI::CForm SallyAPI::GUI::CControl SallyAPI::GUI::CGUIBaseObject SallyAPI::Core::CBaseObject SallyAPI::GUI::CGameWindow

List of all members.

Public Member Functions

 CApplicationWindow (SallyAPI::GUI::CGUIBaseObject *parent, int graphicId, const std::string &pluginPath)
 Constructor.
virtual ~CApplicationWindow ()
 Destructor.
std::string GetAPIVersion ()
 Gets a pi version.
std::string GetAppName ()
 Gets the application name.
std::string GetAuthor ()
 Gets the author.
std::string GetVersion ()
 Gets the version.
std::string GetPluginPath ()
 Gets the plugin path.
virtual bool ActivateScreensaver ()
 Activates a screensaver.
virtual bool DeactivateScreensaver ()
 Deactivate screensaver.
virtual bool HasScreensaver ()
 Query if this object has screensaver.
virtual bool HasApplication ()
 Query if this object has application.
virtual bool IsFacebookNeeded ()
 Query if this facebook connect need to be enabled.
virtual bool IsGame ()
 Query if this object is game.
virtual bool VoiceCommand (const std::string &command)
 Voice command.
virtual bool VoiceCommandActive (const std::string &command)
 Voice command active.
virtual bool VoiceCommandFocus (const std::string &command)
 Voice command focus.
virtual bool SpecialKeyPressed (int key)
 Special key pressed.
virtual void SendMessageToChilds (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)
 Send message to childs.
virtual void SendMessageToParent (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL)
 Send message to parent.

Protected Member Functions

void UnloadPicture (int id)
 Unload picture.
void LoadApplicationImage (const std::string &name, int id, bool scalable=false)
 Loads a picture.
virtual void LoadConfig (SallyAPI::GUI::SendMessage::CParameterIntegerVector *messageParameter=NULL)
 Loads a configuration.
virtual void SaveConfig ()
 Is called when the configuration should be saved.
virtual void SallyConfigChanged ()
 The config for this application was changed. Normally called from the the save action of the config panel.
virtual void MuteSound ()
 Mute sound.
virtual void UnMuteSound ()
 Un mute sound.

Protected Attributes

std::string m_strPluginPath
std::string m_strAppName
std::string m_strAuthor
std::string m_strVersion

Detailed Description

The main class to inherit from when creating a sally application or screensaver (or both).

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

CApplicationWindow::CApplicationWindow ( SallyAPI::GUI::CGUIBaseObject parent,
int  graphicId,
const std::string &  pluginPath 
)

Constructor.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]parentIf non-null, the parent.
graphicIdIdentifier for the graphic.
pluginPathFull pathname of the plugin file.

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

Activates a screensaver.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
true if it succeeds, false if it fails.

Deactivate screensaver.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
true if it succeeds, false if it fails.

Gets a pi version.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
a pi version.

Gets the application name.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The application name.

Gets the author.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The author.

Gets the plugin path.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The plugin path.

Gets the version.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The version.

Query if this object has application.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
true if application, false if not.

Query if this object has screensaver.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
true if screensaver, false if not.

Query if this facebook connect need to be enabled.

Author:
Christian Knobloch
Date:
08.09.2010
Returns:
true if facebook connect needed, false if not.
bool CApplicationWindow::IsGame ( ) [virtual]

Query if this object is game.

Author:
Christian Knobloch
Date:
08.09.2010
Returns:
true if game, false if not.

Reimplemented in SallyAPI::GUI::CGameWindow.

void CApplicationWindow::LoadApplicationImage ( const std::string &  name,
int  id,
bool  scalable = false 
) [protected]

Loads a picture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
nameThe name.
idThe identifier.
scalabletrue to scalable.
void CApplicationWindow::LoadConfig ( SallyAPI::GUI::SendMessage::CParameterIntegerVector messageParameter = NULL) [protected, virtual]

Loads a configuration.

Author:
Christian Knobloch
Date:
24.12.2011
Parameters:
[in,out]messageParameterIf non-null, the message parameter.
void CApplicationWindow::MuteSound ( ) [protected, virtual]

Mute sound.

Author:
Christian Knobloch
Date:
19.04.2010
void CApplicationWindow::SallyConfigChanged ( ) [protected, virtual]

The config for this application was changed. Normally called from the the save action of the config panel.

Author:
Christian Knobloch
Date:
19.04.2010
void CApplicationWindow::SaveConfig ( ) [protected, virtual]

Is called when the configuration should be saved.

Author:
Christian Knobloch
Date:
25.05.2010
void CApplicationWindow::SendMessageToChilds ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to childs.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CForm.

void CApplicationWindow::SendMessageToParent ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to parent.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CAppBase.

Reimplemented in SallyAPI::GUI::CGameWindow.

bool CApplicationWindow::SpecialKeyPressed ( int  key) [virtual]

Special key pressed.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
keyThe key.
Returns:
true if it succeeds, false if it fails.
void CApplicationWindow::UnloadPicture ( int  id) [protected]

Unload picture.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
idThe identifier.
void CApplicationWindow::UnMuteSound ( ) [protected, virtual]

Un mute sound.

Author:
Christian Knobloch
Date:
19.04.2010
bool CApplicationWindow::VoiceCommand ( const std::string &  command) [virtual]

Voice command.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
commandThe command.
Returns:
true if it succeeds, false if it fails.
bool CApplicationWindow::VoiceCommandActive ( const std::string &  command) [virtual]

Voice command active.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
commandThe command.
Returns:
true if it succeeds, false if it fails.
bool CApplicationWindow::VoiceCommandFocus ( const std::string &  command) [virtual]

Voice command focus.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
commandThe command.
Returns:
true if it succeeds, false if it fails.

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines