Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: My OS X Thermometer client.
Clone URL: git://github.com/dustin/osx-thermometer.git
Search Repo:
osx-thermometer / Thermometer.h
100644 41 lines (31 sloc) 0.767 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// Thermometer.h
// Thermometer
//
// Created by Dustin Sallings on Sat Mar 22 2003.
// Copyright (c) 2003 SPY internetworking. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
#define DATA_UPDATED @"DATA_UPDATED"
#define THERM_LIST @"THERM_LIST"
#define UNIT_CHANGE @"UNIT_CHANGE"
#define RING_BUFFER_SIZE 180
 
#define CTOF(c) (((9.0/5.0)*c) + 32.0)
 
@interface Thermometer : NSObject {
    float reading;
    NSString *name;
    int tag;
    
    NSMutableArray *lastReadings;
    float trend;
}
 
// Initialize this Thermometer
-(id)initWithName:(NSString *)theName;
 
-(void)setReading: (float)r;
-(float)reading;
-(float)trend;
-(void)setName: (NSString *)n;
-(NSString *)name;
 
-(NSArray *)lastReadings;
 
-(int)tag;
-(void)setTag:(int)to;
 
@end