Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 124 lines (113 sloc) 3.969 kb
ca98268 @ettore initial version 1.2.1 RCs
authored
1 //
2 // CLSimpleTimerModel.h
3 // SimpleTimer
4 // Created by ep on 11/17/04.
5 // Copyright 2004 Cubelogic. All rights reserved.
6 //
7
8 #import <Cocoa/Cocoa.h>
9 #import "CLSimpleTimerGlobals.h"
10
11 extern const int CL_SIMPLETIMER_START_AFTER;
12 extern const int CL_SIMPLETIMER_START_AT_DATE;
13
14 @interface CLSimpleTimerModel : NSObject {
15 NSString *name; /*"Used to store the filename of this timer."*/
16 NSString *firingDateString;//date it'll fire if atDateNow=CLSimpleTimerAtDate
17 NSString *url;
18 NSString *sndName;
19 NSString *sndDir;// must include a final `/'
20 NSString *msg;
21 NSMutableArray *msgList;
22 NSMutableArray *urlList;
23 int atDateNow;//indicates if timer starts now or at a certain date
24 int afterHrs;
25 int afterMins;
26 int afterSecs;
27 int urlFlag; // NSOnState or NSOffState
28 int sndFlag; // NSOnState or NSOffState
29 int sndTimes;
30 int msgFlag; // NSOnState or NSOffState
31 int appLaunchFlag; // NSOnState or NSOffState
32 int repeatFlag; // NSOnState or NSOffState
33 int autoFlag; // NSOnState or NSOffState
34 BOOL timerStarted;/*"Tells whether the timer is active or stopped."*/
35 int cycleTimes;
36 int cycleTimesLeft;
37 int cycleHrs;
38 int cycleMins;
39 int cycleSecs;
40 NSString *statusInfo;
41 }
42
43 // ################################################################
44 // ############## DESIGNATED INIT ################
45 // ################################################################
46
47 - (id)initWithMsgs:(NSMutableArray *)msgs
48 urls:(NSMutableArray *)urls
49 sndDir:(NSString *)dir;
50
51 // ################################################################
52 // ############## UTILITY METHODS #################
53 // ################################################################
54
55 /*" Returns an array containing the sound file types handled by this timer.
56 Currently this is the result of [NSSound soundUnfilteredFileTypes].
57 "*/
58 + (NSArray *)allowedSndExtensions;
59 - (void)addMsg: (NSString *)s;
60 - (void)addUrl: (NSString *)s;
61 - (NSDate *)fireDate;
62 - (CLSimpleTimerModel *)timerModel;
63 - (NSString *)fileName;
64
65 // ################################################################
66 // ########## GETTER AND SETTER METHODS ####################
67 // ################################################################
68
69 - (NSString *) name;
70 - (NSString *) firingDateString;
71 - (NSString *) url;
72 - (NSString *) sndName;
73 - (NSString *) sndName;
74 - (NSString *) sndDir;
75 - (NSString *) msg;
76 - (void) setName:(NSString *)newName;
77 - (void) setFiringDateString:(NSString *)newFiringDateString;
78 - (void) setUrl:(NSString *)newUrl;
79 - (void) setSndName:(NSString *)newSndName;
80 - (void) setSndDir:(NSString *)newSndDir;
81 - (void) setMsg:(NSString *)newMsg;
82 - (int) atDateNow;
83 - (void) setAtDateNow:(int)newAtDateNow;
84 - (int) cycleHrs;
85 - (void) setCycleHrs:(int)newCycleHrs;
86 - (int) cycleMins;
87 - (void) setCycleMins:(int)newCycleMins;
88 - (int) cycleSecs;
89 - (void) setCycleSecs:(int)newCycleSecs;
90 - (int) urlFlag;
91 - (void) setUrlFlag:(int)newUrlFlag;
92 - (int) sndFlag;
93 - (void) setSndFlag:(int)newSndFlag;
94 - (int) sndTimes;
95 - (void) setSndTimes:(int)newSndTimes;
96 - (int) msgFlag;
97 - (void) setMsgFlag:(int)newMsgFlag;
98 - (int) appLaunchFlag;
99 - (void) setAppLaunchFlag:(int)newAppLaunchFlag;
100 - (int) repeatFlag;
101 - (void) setRepeatFlag:(int)newRepeatFlag;
102 - (int) autoFlag;
103 - (void) setAutoFlag:(int)newAutoFlag;
104 - (BOOL) timerStarted;
105 - (void) setTimerStarted:(BOOL)newTimerStarted;
106 - (NSMutableArray *)urlList;
107 - (void) setUrlList: (NSMutableArray *)arr;
108 - (NSMutableArray *)msgList;
109 - (void) setMsgList: (NSMutableArray *)arr;
110 - (int)cycleTimes;
111 - (void)setCycleTimes:(int)_t_m_p_;
112 - (int)cycleTimesLeft;
113 - (void)setCycleTimesLeft:(int)_t_m_p_;
114 - (int)afterHrs;
115 - (void)setAfterHrs:(int)_t_m_p_;
116 - (int)afterMins;
117 - (void)setAfterMins:(int)_t_m_p_;
118 - (int)afterSecs;
119 - (void)setAfterSecs:(int)_t_m_p_;
120 - (NSString *)statusInfo;
121 - (void)setStatusInfo:(NSString *)_t_m_p_;
122
123 @end
Something went wrong with that request. Please try again.