Ignore:
Timestamp:
07/25/06 07:34:35 (18 years ago)
Author:
Nicholas Riley
Message:

Keep track of recent messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/net/sabi/pester/Alarms.java

    r278 r283  
    4444            alarm.resume();
    4545        }
     46        try {
     47            MessageFinder.setMessageListFromByteArray(sSettingsDB.getBytes(KEY_RECENT_MESSAGES));
     48        } catch (SettingsDBException e) {
     49            MessageFinder.setDefaultMessageList();
     50        }
    4651        sAlarmList = this;
    4752    }
     
    6267    public static void removeAlarm(Alarm alarm) {
    6368        sAlarmList.removeItem(alarm);
     69    }
     70    public static void recentMessagesChanged() {
     71        sSettingsDB.setBytes(KEY_RECENT_MESSAGES,
     72                             MessageFinder.messageListAsByteArray());
    6473    }
    6574
     
    94103
    95104    private static String KEY_DEFAULT_ALARM = "default alarm";
     105    private static String KEY_RECENT_MESSAGES = "recent messages";
    96106
    97107    public static Alarm getDefaultAlarm() {
Note: See TracChangeset for help on using the changeset viewer.