~ubuntu-branches/ubuntu/wily/udj-desktop-client/wily

« back to all changes in this revision

Viewing changes to src/MetaWindow.hpp

  • Committer: Package Import Robot
  • Author(s): Nathan Handler
  • Date: 2012-11-14 15:29:07 UTC
  • mfrom: (1.2.1) (4.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20121114152907-8uj9bwcima77vu28
Tags: 0.6.3-1
* New upstream release
* debian/copyright: Add stanzas for new upstream files
* debian/rules:
  - Do not install ./usr/share/doc/udj/UDJ.1
  - Remove /usr/share/doc/udj directory if it is empty
* debian/control:
  - Bump Standards-Version to 3.9.4 (no changes)
  - Use my @debian.org address for the Maintainer field

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <QSqlTableModel>
26
26
#include "UDJServerConnection.hpp"
27
27
#include "PlaybackWidget.hpp"
 
28
#if IS_WINDOWS_BUILD
 
29
#include <qtsparkle/Updater>
 
30
#endif
28
31
 
29
32
class QTabWidget;
30
33
class QPushButton;
43
46
class EventWidget;
44
47
class DataStore;
45
48
class PlayerDashboard;
 
49
class ParticipantsView;
46
50
 
47
51
/**
48
52
 * \brief A class that is the main point of interaction with the user. 
84
88
  /** \brief . */
85
89
  virtual void closeEvent(QCloseEvent *event);
86
90
 
 
91
  /** \brief . */
 
92
  bool eventFilter(QObject *obj, QEvent *event);
 
93
 
87
94
  //@}
88
95
 
89
96
private slots:
91
98
  /** @name Private Slots */
92
99
  //@{
93
100
 
94
 
  /** \brief Shows the logger view */
 
101
  /** \brief Inform the user their current credentials no longer work.  */
 
102
  void onHardAuthFailure();
 
103
 
 
104
  /**
 
105
   * \brief Performs appropriate actions when there is an error setting the location of the player.
 
106
   */
 
107
  void onPlayerLocationSetError(const QString& errMessage);
 
108
 
 
109
  /** \brief Shows the logger view. */
95
110
  void displayLogView();
96
111
 
97
 
  /** \brief Shows the about widget*/
 
112
  /** \brief Shows the about widget. */
98
113
  void displayAboutWidget();
99
114
 
100
 
  /** \brief Initiates the syncing of the library */
 
115
  /** \brief Initiates the syncing of the library. */
101
116
  void syncLibrary();
102
117
 
103
118
  /**
121
136
  void displayPlaylist();
122
137
 
123
138
  /**
 
139
   * \brief Displays the participants view in the main content panel.
 
140
   */
 
141
  void displayParticipants();
 
142
 
 
143
  /**
124
144
   * \brief Updates the syncprogress given the songs that have been updated.
125
145
   *
126
146
   * \param songs Songs that were updated.
140
160
  void syncError(const QString& errMessage);
141
161
 
142
162
  /**
143
 
   * \brief Initiates the process for changing the players name.
144
 
   */
145
 
  void changePlayerName();
146
 
 
147
 
  /**
148
 
   * \brief Preforms necessary actions when a players name is succesfully changed.
149
 
   */
150
 
  void onPlayerNameChanged();
151
 
 
152
 
  /**
153
 
   * \brief Preforms necessary actions when changing a players name failed.
154
 
   *
155
 
   * \param errMessage A message describing the error.
156
 
   */
157
 
  void onPlayerNameChangeError(const QString& errMessage);
158
 
 
159
 
  /**
160
163
   * \brief Preforms necessary actions in order to start setting the player's location.
161
164
   */
162
165
  void setPlayerLocation();
167
170
  void setPlayerPassword();
168
171
 
169
172
  /**
 
173
   * \brief Scans the iTunes library for any music that can be added to the music library and
 
174
   * attempts to add them.
 
175
   */
 
176
  void scanItunesLibrary();
 
177
 
 
178
  /**
170
179
   * \brief Performs necessary actions in order to start removing the player's password.
171
180
   */
172
181
  void removePlayerPassword();
173
182
 
174
183
  /**
175
 
   * \brief Preforms necessary actions when the player password was sucesfully removed.
176
 
   */
177
 
  void onPlayerPasswordRemoved();
178
 
 
179
 
  /**
180
184
   * \brief Preforms necessary actions when there was an error removing the player password.
 
185
   *
 
186
   * \param errMessage A message describing the error.
181
187
   */
182
 
  void onPlayerPasswordRemoveError();
 
188
  void onPlayerPasswordRemoveError(const QString& errMessage);
183
189
 
184
190
  /**
185
191
   * \brief Enables the ability to remove the player password.
223
229
  /** \brief Triggers display of the about widget */
224
230
  QAction *viewAboutAction;
225
231
 
226
 
  /**
227
 
   * \brief Triggers the changing of the player name.
228
 
   */
229
 
  QAction *changeNameAction;
230
 
 
231
 
  /**
232
 
   * \brief Triggers the setting of the player location.
233
 
   */
 
232
  /** \brief Triggers the setting of the player location.  */
234
233
  QAction *setLocationAction;
235
234
 
 
235
  /** \brief Triggers rescanning of the iTunes Library. */
 
236
  QAction *rescanItunesAction;
 
237
 
236
238
  /**
237
239
   * \brief Triggers the setting of the player password.
238
240
   */
243
245
   */
244
246
  QAction *removePasswordAction;
245
247
 
 
248
  #if IS_WINDOWS_BUILD
 
249
  /**
 
250
   * \brief Checks to se if there is an update available for the player.
 
251
   */
 
252
  QAction* checkUpdateAction;
 
253
  #endif
 
254
 
246
255
//  QFileSystemWatcher* fileWatcher;
247
256
 
248
257
 
270
279
  /** \brief Dashboard used to display information about the player. */
271
280
  PlayerDashboard *dashboard;
272
281
 
 
282
  /** \brief ParticipantsView used to display player participants. */
 
283
  ParticipantsView *participantsView;
 
284
 
273
285
  /** \brief A flag indicating whether or not the client is in the process of quitting. */
274
286
  bool isQuiting;
275
287
 
 
288
  /**
 
289
   * \brief A flag indicating whether or not the client is currently expeiriencing a hard
 
290
   * authentication failure.
 
291
   */
 
292
  bool hasHardAuthFailure;
 
293
 
 
294
#if IS_WINDOWS_BUILD
 
295
  qtsparkle::Updater* updater;
 
296
#endif
 
297
 
276
298
  //@}
277
299
 
278
300
  /** @name Private Functions */
290
312
  /** \brief Configures the menu for changing player settings. */
291
313
  void configurePlayerMenu();
292
314
 
293
 
  /** 
 
315
  /** \brief Determines whether or not the user had an iTunes library. */
 
316
  bool hasItunesLibrary();
 
317
 
 
318
  /**
294
319
   * \brief Attemps to add the given media sources to the library.
295
 
   * 
 
320
   *
296
321
   * \param musicToAdd A list of media sources to be added to the library.
297
322
   */
298
323
  void addMediaSources(const QList<Phonon::MediaSource>& musicToAdd);
303
328
   */
304
329
  void disconnectSyncSignals();
305
330
 
306
 
  /**
307
 
   * \brief Disconnects any signals that may have been setup when initiating a player
308
 
   * name change operation.
309
 
   */
310
 
  void disconnectNameChangeSignals();
311
 
 
312
 
  /**
313
 
   * \brief Disconnects any signals that may have been setup when initiating a player
314
 
   * password removal operation.
315
 
   */
316
 
  void disconnectPlayerPasswordRemoveSignals();
317
 
 
318
331
  //@}
319
332
 
320
333
};