My Project
D:/source/c++/Programme/sally/sally/sallyAPI/ApplicationWindow.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include "Config.h"
00031 #include "AppBase.h"
00032 #include "WizardPanel.h"
00033 #include "ParameterIntegerVector.h"
00034 
00035 namespace SallyAPI
00036 {
00037         namespace GUI
00038         {
00048 
00049                 class DLL_API_SALLY CApplicationWindow :
00050                         public SallyAPI::GUI::CAppBase
00051                 {
00052                 private:
00053                         std::string                                             m_strAPIVersion;
00054                 protected:
00055                         std::string                                             m_strPluginPath;
00056                         std::string                                             m_strAppName;
00057                         std::string                                             m_strAuthor;
00058                         std::string                                             m_strVersion;
00059 
00060                         void                    UnloadPicture(int id);
00061                         void                    LoadApplicationImage(const std::string& name, int id, bool scalable = false);
00062                         virtual void    LoadConfig(SallyAPI::GUI::SendMessage::CParameterIntegerVector* messageParameter = NULL);
00063                         virtual void    SaveConfig();
00064                         virtual void    SallyConfigChanged();
00065                         virtual void    MuteSound();
00066                         virtual void    UnMuteSound();
00067                 public:
00068                         CApplicationWindow(SallyAPI::GUI::CGUIBaseObject* parent, int graphicId, const std::string& pluginPath);
00069                         virtual ~CApplicationWindow();
00070 
00071                         std::string GetAPIVersion();
00072                         std::string GetAppName();
00073                         std::string GetAuthor();
00074                         std::string GetVersion();
00075                         std::string GetPluginPath();
00076 
00077                         // Screensaver Functions
00078                         virtual bool    ActivateScreensaver();
00079                         virtual bool    DeactivateScreensaver();
00080                         
00081                         virtual bool    HasScreensaver();
00082                         virtual bool    HasApplication();
00083                         virtual bool    IsFacebookNeeded();
00084                         virtual bool    IsGame();
00085 
00086                         // Voice Input
00087                         virtual bool    VoiceCommand(const std::string& command);
00088                         virtual bool    VoiceCommandActive(const std::string& command);
00089                         virtual bool    VoiceCommandFocus(const std::string& command);
00090 
00091                         virtual bool    SpecialKeyPressed(int key);
00092 
00093                         virtual void    SendMessageToChilds(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL);
00094                         virtual void    SendMessageToParent(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL);
00095                 };
00096         }
00097 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines