Changeset 742


Ignore:
Timestamp:
Aug 8, 2006, 3:04:25 AM (15 years ago)
Author:
livings124
Message:

Growl for auto speed limit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r740 r742  
    4545#define GROWL_SEEDING_COMPLETE  @"Seeding Complete"
    4646#define GROWL_AUTO_ADD          @"Torrent Auto Added"
     47#define GROWL_AUTO_SPEED_LIMIT  @"Speed Limit Auto Changed"
    4748
    4849#define TORRENT_TABLE_VIEW_DATA_TYPE    @"TorrentTableViewDataType"
     
    12281229   
    12291230    if ([currentDate hourOfDay] == (fSpeedLimitEnabled ? offHour : onHour))
     1231    {
    12301232        [self toggleSpeedLimit: nil];
     1233       
     1234        [GrowlApplicationBridge notifyWithTitle: [@"Speed Limit Auto " stringByAppendingString:
     1235            fSpeedLimitEnabled ? @"Enabled" : @"Disabled"] description: @"Bandwidth settings changed"
     1236            notificationName: GROWL_AUTO_SPEED_LIMIT iconData: nil priority: 0 isSticky: NO clickContext: nil];
     1237    }
    12311238}
    12321239
     
    22722279- (NSDictionary *) registrationDictionaryForGrowl
    22732280{
    2274     NSArray * notifications = [NSArray arrayWithObjects: GROWL_DOWNLOAD_COMPLETE,
    2275                                         GROWL_SEEDING_COMPLETE, GROWL_AUTO_ADD, nil];
     2281    NSArray * notifications = [NSArray arrayWithObjects: GROWL_DOWNLOAD_COMPLETE, GROWL_SEEDING_COMPLETE,
     2282                                                            GROWL_AUTO_ADD, GROWL_AUTO_SPEED_LIMIT, nil];
    22762283    return [NSDictionary dictionaryWithObjectsAndKeys: notifications, GROWL_NOTIFICATIONS_ALL,
    22772284                                notifications, GROWL_NOTIFICATIONS_DEFAULT, nil];
Note: See TracChangeset for help on using the changeset viewer.