gecko/toolkit/components/alerts/mac/nsMacAlertsService.h

32 lines
754 B
C++

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef nsMacAlertsService_h_
#define nsMacAlertsService_h_
#include "nsIAlertsService.h"
#include "nsIObserver.h"
struct NotificationCenterDelegateWrapper;
class nsMacAlertsService : public nsIAlertsService,
public nsIObserver
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIALERTSSERVICE
NS_DECL_NSIOBSERVER
nsMacAlertsService();
nsresult Init();
private:
virtual ~nsMacAlertsService();
nsresult InitNotificationCenter();
NotificationCenterDelegateWrapper* mNCDelegate;
};
#endif // nsMacAlertsService_h_