~wintermute-devel/wintermute/master

« back to all changes in this revision

Viewing changes to src/Wintermute/application.hpp

  • Committer: Jacky Alciné
  • Date: 2013-05-08 11:22:08 UTC
  • mfrom: (299.1.31)
  • Revision ID: git-v1:736770b4615b8c7cfec6437d8a7d0c8cd95b7d25
Merge branch 'feature/extensibility' into develop

* feature/extensibility:
  Added winfo to updates.
  Updates to Wintermute::Factory.
  Licenses to Wintermute::Version.
  Updates to Wintermute::Application.
  Docs + licensing for header.
  Updated ctags git hook.
  Moved private data into source code.
  Added documentation in application.hpp
  Added changes due to logging infrastructure.
  Added shortcuts for logging to console.
  Added new temporary plugin definition data.
  Improved plugin code.
  Improved logging capability.
  Improved definitions of factory.*pp.
  Improved definitions of arguments.*pp.
  Improved definitions of arguments.*pp.
  Improved definitions in 'application.cpp'
  Added two more non-existing source files to build.
  Updated changes for CMake for extensibility.
  Define default path for extension loading.
  Update generate-ctags.
  Add post-commit hook to VCS.
  Adding logging function to Wintermute::Arguments.
  Updated Wintermute::Application with functionality.
  Added Wintermute::Factory to build.
  Updated Wintermute's global header.
  Add semantic versioning + Git to CMake.
  Updated CMake configuration and add 'Version'.
  Updated 'src/CMakeLists.txt' to reflect source.
  Add 'Wintermute::Plugin' to codebase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef WINTERMUTE_APPLICATION_HPP
23
23
#define WINTERMUTE_APPLICATION_HPP
24
24
 
25
 
#include <QObject>
26
 
#include <QSharedPointer>
 
25
#include <Wintermute/Globals>
27
26
 
28
27
namespace Wintermute {
 
28
  class Version;
29
29
  class ApplicationPrivate;
 
30
 
30
31
  class Application : public QObject {
31
32
    Q_OBJECT
32
33
 
34
35
 
35
36
    QScopedPointer<ApplicationPrivate> d_ptr;
36
37
    static Application* self;
 
38
 
 
39
    /**
 
40
     * @fn Application
 
41
     * @brief Private initialization of application.
 
42
     * @constructor
 
43
     *
 
44
     * @param argc Argument count (native-value)
 
45
     * @param argv Arguemnt array (native-value)
 
46
     */
37
47
    Application(int &argc, char **argv);
38
48
 
39
49
    public:
61
71
       */
62
72
      static int run( int& argc, char **argv );
63
73
 
 
74
      /**
 
75
       * @fn version
 
76
       * @brief Obtains the current version of Wintermute.
 
77
       *
 
78
       * TODO: Expand documentation.
 
79
       */
 
80
      Version version() const;
 
81
 
 
82
      /**
 
83
       * @fn start
 
84
       * @brief
 
85
       *
 
86
       * TODO: Expand documentation.
 
87
       */
64
88
      Q_SLOT void start();
 
89
 
 
90
      /**
 
91
       * @fn stop
 
92
       * @brief
 
93
       *
 
94
       * TODO: Expand documentation.
 
95
       */
65
96
      Q_SLOT void stop();
66
97
  };
67
98