forked from cirrusj/HardwareGrowler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notification center support for HardwareGrowler
- Loading branch information
cirrus
committed
Aug 12, 2012
0 parents
commit 9c2fd80
Showing
32 changed files
with
3,036 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* AppController */ | ||
|
||
#ifndef APPCONTROLLER_H | ||
#define APPCONTROLLER_H | ||
|
||
#include <CoreFoundation/CoreFoundation.h> | ||
|
||
#include "PowerNotifier.h" | ||
|
||
void AppController_fwDidConnect(CFStringRef deviceName); | ||
void AppController_fwDidDisconnect(CFStringRef deviceName); | ||
void AppController_usbDidConnect(CFStringRef deviceName); | ||
void AppController_usbDidDisconnect(CFStringRef deviceName); | ||
void AppController_bluetoothDidConnect(CFStringRef device); | ||
void AppController_bluetoothDidDisconnect(CFStringRef device); | ||
void AppController_airportConnect(CFStringRef networkName, const unsigned char *bssidBytes); | ||
void AppController_airportDisconnect(CFStringRef networkName); | ||
void AppController_linkUp(CFStringRef description); | ||
void AppController_linkDown(CFStringRef description); | ||
void AppController_ipAcquired(CFStringRef ip, CFStringRef type); | ||
void AppController_ipReleased(void); | ||
void AppController_syncStarted(void); | ||
void AppController_syncFinished(void); | ||
void AppController_powerSwitched(HGPowerSource powerSource, CFBooleanRef isCharging, | ||
CFIndex batteryTime, CFIndex batteryPercentage); | ||
|
||
#ifdef __OBJC__ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "VolumeNotifier.h" | ||
#import "NetworkNotifier.h" | ||
|
||
void AppController_volumeDidMount(VolumeInfo *info); | ||
void AppController_volumeDidUnmount(VolumeInfo *info); | ||
|
||
@interface AppController : NSObject <NSApplicationDelegate, NSUserNotificationCenterDelegate>{ | ||
NetworkNotifier *networkNotifier; | ||
} | ||
|
||
- (IBAction) doSimpleHelp:(id)sender; | ||
|
||
@end | ||
|
||
#endif | ||
|
||
#endif |
Oops, something went wrong.