Skip to content

Commit

Permalink
Notification center support for HardwareGrowler
Browse files Browse the repository at this point in the history
  • Loading branch information
cirrus committed Aug 12, 2012
0 parents commit 9c2fd80
Show file tree
Hide file tree
Showing 32 changed files with 3,036 additions and 0 deletions.
47 changes: 47 additions & 0 deletions AppController.h
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
Loading

0 comments on commit 9c2fd80

Please sign in to comment.