lnNotifs.h
Go to the documentation of this file.
1 /*
2  * BEGIN NIGHTINGALE GPL
3  *
4  * This file is part of the Nightingale Media Player.
5  *
6  * Copyright(c) 2013
7  * http://getnightingale.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the "GPL").
11  *
12  * Software distributed under the License is distributed
13  * on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  * END NIGHTINGALE GPL
23  */
24 
25 #ifndef _LN_NOTIFS_H_
26 #define _LN_NOTIFS_H_
27 
28 #include "ILNNotifs.h"
29 #include <gtk/gtk.h>
30 #include <libnotify/notify.h>
31 #include <nsCOMPtr.h>
32 #include <nsIObserverService.h>
33 #include <nsServiceManagerUtils.h>
34 
35 #define LN_NOTIFS_CONTRACTID "@getnightingale.com/Nightingale/lnNotifs;1"
36 #define LN_NOTIFS_CLASSNAME "lnNotifs"
37 
38 /* 649f3733-12fd-485b-bd55-5106b6dafb80 */
39 #define LN_NOTIFS_CID \
40 { 0x649f3733, 0x12fd, 0x485b, \
41 { 0xbd, 0x55, 0x51, 0x06, 0xb6, 0xda, 0xfb, 0x80 } }
42 
43 class lnNotifs : public ILNNotifs
44 {
45  public:
47  NS_DECL_ILNNOTIFS
48 
49  lnNotifs();
50 
51  private:
52  virtual ~lnNotifs();
53 
54  protected:
56  NotifyNotification *notification;
57 };
58 
59 #endif // _LN_NOTIFS_H_
bool notifsEnabled
Definition: lnNotifs.h:55
NS_DECL_ISUPPORTS NS_DECL_ILNNOTIFS lnNotifs()
Definition: lnNotifs.cpp:48
NotifyNotification * notification
Definition: lnNotifs.h:56