~jackweirdy/vidalia/680192

« back to all changes in this revision

Viewing changes to src/vidalia/Vidalia.h

  • Committer: Package Import Robot
  • Author(s): Ulises Vitulli, intrigeri, Ulises Vitulli
  • Date: 2012-06-22 07:18:44 UTC
  • mfrom: (1.4.8) (8.2.13 sid)
  • Revision ID: package-import@ubuntu.com-20120622071844-s278v0p646pqt949
Tags: 0.2.19-1
[ intrigeri ]
* Imported Upstream version 0.2.19
* Install AppArmor profile.
* Enable hardening flags.

[ Ulises Vitulli ]
* Added runtime dependency on apparmor.
* Updated d/NEWS and d/README.Debian to reflect new features.
* Move dirs from d/rules to d/vidalia.dir.
* Updated Standard-version to 3.9.3 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
**  LICENSE file, found in the top level directory of this distribution. If you
4
4
**  did not receive the LICENSE file with this file, you may obtain it from the
5
5
**  Vidalia source package distributed by the Vidalia Project at
6
 
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia, 
7
 
**  including this file, may be copied, modified, propagated, or distributed 
 
6
**  http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
 
7
**  including this file, may be copied, modified, propagated, or distributed
8
8
**  except according to the terms described in the LICENSE file.
9
9
*/
10
10
 
59
59
  static void showUsageMessageBox();
60
60
  /** Returns true if the user wants to see usage information. */
61
61
  static bool showUsage();
62
 
  
 
62
 
63
63
  /** Sets the current language. */
64
64
  static bool setLanguage(QString languageCode = QString());
65
65
  /** Sets the current GUI style. */
66
66
  static bool setStyle(QString styleKey = QString());
67
 
  
 
67
 
68
68
  /** Returns the current language. */
69
69
  static QString language() { return _language; }
70
70
  /** Returns the current GUI style. */
74
74
 
75
75
  /** Returns Vidalia's main TorControl object. */
76
76
  static TorControl* torControl() { return _torControl; }
77
 
  
 
77
 
78
78
  /** Returns the location Vidalia uses for its data files. */
79
79
  static QString dataDirectory();
80
80
  /** Returns the default location of Vidalia's data directory. */
81
81
  static QString defaultDataDirectory();
82
 
  
 
82
 
83
83
  /** Returns the location of Vidalia's pid file. */
84
84
  static QString pidFile();
85
85
 
89
89
 
90
90
  /** Writes <b>msg</b> with severity <b>level</b> to Vidalia's log. */
91
91
  static Log::LogMessage log(Log::LogLevel level, QString msg);
92
 
 
 
92
 
93
93
  /** Enters the main event loop and waits until exit() is called. The signal
94
94
   * running() will be emitted when the event loop has started. */
95
95
  static int run();
114
114
 
115
115
signals:
116
116
  /** Emitted when the application is running and the main event loop has
117
 
   * started. */ 
 
117
   * started. */
118
118
  void running();
119
119
 
120
120
protected:
131
131
   * will emit the running() signal to indicate that the application's event
132
132
   * loop is running. */
133
133
  void onEventLoopStarted();
134
 
 
 
134
 
135
135
private:
136
 
  /** Catches debugging messages from Qt and sends them to 
 
136
  /** Catches debugging messages from Qt and sends them to
137
137
   * Vidalia's logs. */
138
138
  static void qt_msg_handler(QtMsgType type, const char *msg);
139
139
 
147
147
   */
148
148
  void copyDefaultSettingsFile() const;
149
149
 
150
 
  /** Clears the list of default CA certificates and adds only the ones
151
 
   * Vidalia is interested in.
152
 
   */
153
 
  void loadDefaultCaCertificates() const;
154
 
 
155
150
  static QMap<QString, QString> _args; /**< List of command-line arguments.  */
156
151
  static QString _style;               /**< The current GUI style.           */
157
152
  static QString _language;            /**< The current language.            */