Debian Codegraph @

include/support/notification.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2018 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_FREAC_NOTIFICATION
14 #define H_FREAC_NOTIFICATION
15
16 #include <smooth.h>
17
18 using namespace smooth;
19
20 namespace freac
21 {
22 class Notification
23 {
24 private:
25 /* Singleton class, therefore private constructor/destructor
26 */
27 static Notification *instance;
28
29 Void *privateData;
30
31 Notification();
32 ~Notification();
33 public:
34 Void ProcessSystemMessage(Int, Int, Int);
35
36 /* Returns a new or existing instance of Notification
37 */
38 static Notification *Get();
39
40 /* Destroys an existing instance of Notification
41 */
42 static Void Free();
43 accessors:
44 Bool IsNotificationAvailable() const;
45 signals:
46 Signal0<Void> onDriveChange;
47
48 Signal1<Void, Int> onDiscInsert;
49 Signal1<Void, Int> onDiscRemove;
50 };
51 };
52
53 #endif