Skip to content
Permalink
Browse files

moved files

  • Loading branch information...
FlyingDiver committed Sep 21, 2011
1 parent 3821270 commit c8cc8370ad1e5dbac5ffbf713ef33fca9c87406e
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -8,7 +8,6 @@
// Manages the preferences panel

#import <Cocoa/Cocoa.h>
#import "SoundPicker.h"

extern NSString * const kStokeripAddressKey;
extern NSString * const kMinGraphTempKey;
File renamed without changes.
@@ -28,7 +28,7 @@
#import <unistd.h>


#if 1
#if 0

// Logging Enabled - See log level below

File renamed without changes.
File renamed without changes.
@@ -7,17 +7,13 @@
//

#import <Foundation/Foundation.h>
#include <fcntl.h>
#include <unistd.h>

#import "GTMOAuth/GTMHTTPFetcher.h"
#import "GCDAsyncSocket.h"
#import "JSON.h"
#import "SendExpect.h"

#define STOKER_QUERY_INTERVAL 10.0
#define BLOWER_STEP 60.0

@class GTMHTTPFetcher;
@interface Stoker : NSObject <GCDAsyncSocketDelegate> {
@private
GCDAsyncSocket *socket;
@@ -116,48 +112,3 @@
- (void) stoker: (Stoker *) stk updateSensorTemp: (NSNumber *) Temp forSensor: (NSString *) sensorID;

@end

@class StokerBlower;
@class StokerSensor;

@interface StokerSensor : NSObject {

NSString * sensorName;
NSString * deviceID;
NSString * blowerID;
NSNumber * tempCurrent;
NSNumber * tempTarget;
NSNumber * tempHigh;
NSNumber * tempLow;
Boolean alarm;
Boolean control;
StokerBlower *blower;
}

@property (nonatomic, retain) NSString * sensorName;
@property (nonatomic, retain) NSString * deviceID;
@property (nonatomic, retain) NSNumber * tempCurrent;
@property (nonatomic, retain) NSNumber * tempTarget;
@property (nonatomic, retain) NSString * blowerID;
@property (nonatomic, assign) Boolean control;
@property (nonatomic, retain) StokerBlower * blower;

@end

@interface StokerBlower : NSObject {

NSString *blowerName;
NSString *deviceID;
Boolean state;
NSInteger onCycleCount;
StokerSensor *sensor;
}

@property (nonatomic, retain) NSString * blowerName;
@property (nonatomic, retain) NSString * deviceID;
@property (nonatomic, assign) Boolean state;
@property (nonatomic, retain) StokerSensor * sensor;

@end


@@ -7,7 +7,10 @@
//

#import "Stoker.h"

#import "JSON.h"
#import "StokerSensor.h"
#import "StokerBlower.h"
#import "GTMOAuth/GTMHTTPFetcher.h"

@implementation Stoker

@@ -294,14 +297,6 @@ - (void) startTelnetCapture

NSLog(@"startTelnetCapture telnetAddress = %@", telnetAddress);


// Set up stdin for non-blocking.
/* if (fcntl (STDIN_FILENO, F_SETFL, O_NONBLOCK) == -1)
{
NSLog (@"Stoker: Can't make STDIN non-blocking.");
exit(1);
}
*/
if (![socket connectToHost:telnetAddress onPort: telnetPort error:&err])
{
NSLog (@"Stoker: Couldn't connect to %@:%u (%@).", ipAddress, telnetPort, err);
@@ -690,35 +685,4 @@ - (void) sendExpectFailed: (SendExpect *) sequence withError: (NSString *) error

@end

#pragma mark -
#pragma mark Convenience Classes

@implementation StokerBlower

- (NSString *) description
{
return [NSString stringWithFormat: @"StokerBlower: name = %@, id = %@, state = %d", blowerName, deviceID, state];
}

@synthesize blowerName;
@synthesize deviceID;
@synthesize state;
@synthesize sensor;

@end

@implementation StokerSensor

@synthesize sensorName;
@synthesize deviceID;
@synthesize tempCurrent;
@synthesize tempTarget;
@synthesize blowerID;
@synthesize control;
@synthesize blower;

- (NSString *) description
{
return [NSString stringWithFormat: @"StokerSensor: name = %@, id = %@, tc = %@, ta = %@, blower = %@", sensorName, deviceID, tempCurrent, tempTarget, blowerID];
}
@end
@@ -0,0 +1,28 @@
//
// StokerBlower.h
// StokerX
//
// Created by Joe Keenan on 9/21/11.
// Copyright 2011 Joseph P Keenan Jr. All rights reserved.
//

#import <Foundation/Foundation.h>

@class StokerSensor;
@interface StokerBlower : NSObject {

NSString *blowerName;
NSString *deviceID;
Boolean state;
NSInteger onCycleCount;
StokerSensor *sensor;
}

@property (nonatomic, retain) NSString * blowerName;
@property (nonatomic, retain) NSString * deviceID;
@property (nonatomic, assign) Boolean state;
@property (nonatomic, retain) StokerSensor * sensor;

@end


@@ -0,0 +1,32 @@
//
// StokerBlower.m
// StokerX
//
// Created by Joe Keenan on 9/21/11.
// Copyright 2011 Joseph P Keenan Jr. All rights reserved.
//

#import "StokerBlower.h"

@implementation StokerBlower

@synthesize blowerName;
@synthesize deviceID;
@synthesize state;
@synthesize sensor;

- (id)init
{
self = [super init];
if (self) {
// Initialization code here.
}

return self;
}

- (NSString *) description
{
return [NSString stringWithFormat: @"StokerBlower: name = %@, id = %@, state = %d", blowerName, deviceID, state];
}
@end
@@ -0,0 +1,34 @@
//
// StokerSensor.h
// StokerX
//
// Created by Joe Keenan on 9/21/11.
// Copyright 2011 Joseph P Keenan Jr. All rights reserved.
//

#import <Foundation/Foundation.h>

@class StokerBlower;
@interface StokerSensor : NSObject {

NSString * sensorName;
NSString * deviceID;
NSString * blowerID;
NSNumber * tempCurrent;
NSNumber * tempTarget;
NSNumber * tempHigh;
NSNumber * tempLow;
Boolean alarm;
Boolean control;
StokerBlower *blower;
}

@property (nonatomic, retain) NSString * sensorName;
@property (nonatomic, retain) NSString * deviceID;
@property (nonatomic, retain) NSNumber * tempCurrent;
@property (nonatomic, retain) NSNumber * tempTarget;
@property (nonatomic, retain) NSString * blowerID;
@property (nonatomic, assign) Boolean control;
@property (nonatomic, retain) StokerBlower * blower;

@end
@@ -0,0 +1,34 @@
//
// StokerSensor.m
// StokerX
//
// Created by Joe Keenan on 9/21/11.
// Copyright 2011 Joseph P Keenan Jr. All rights reserved.
//

#import "StokerSensor.h"

@implementation StokerSensor

@synthesize sensorName;
@synthesize deviceID;
@synthesize tempCurrent;
@synthesize tempTarget;
@synthesize blowerID;
@synthesize control;
@synthesize blower;

- (id)init
{
self = [super init];
if (self) {
// Initialization code here.
}

return self;
}
- (NSString *) description
{
return [NSString stringWithFormat: @"StokerSensor: name = %@, id = %@, tc = %@, ta = %@, blower = %@", sensorName, deviceID, tempCurrent, tempTarget, blowerID];
}
@end
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBuildDate</key>
<string>Wed Sep 21 14:23:24 EDT 2011</string>
<string>Wed Sep 21 15:34:06 EDT 2011</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
@@ -34,11 +34,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.7.4</string>
<string>0.7.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>88</string>
<string>102</string>
<key>FRFeedbackReporter.addressbookEmail </key>
<string>YES</string>
<key>FRFeedbackReporter.sendDetailsIsOptional</key>
Oops, something went wrong.

0 comments on commit c8cc837

Please sign in to comment.
You can’t perform that action at this time.