-
Notifications
You must be signed in to change notification settings - Fork 2
/
RipHoodController.h
76 lines (58 loc) · 1.91 KB
/
RipHoodController.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
// RipHoodController.h
// HoodApp
//
// Created by Slava Karpenko on 11/23/08.
// Copyright 2008 Ripdev. All rights reserved.
//
#include <mach/mach.h>
#import <UIKit/UIKit.h>
#import "RipPieChartView.h"
@class RipHoodProcessListController;
@interface RipHoodController : UIViewController {
IBOutlet UIControl* overlayView;
IBOutlet RipPieChartView* pieChart;
IBOutlet UILabel* freeLabel;
IBOutlet UILabel* activeLabel;
IBOutlet UILabel* inactiveLabel;
IBOutlet UILabel* wiredLabel;
IBOutlet UILabel* usedLabel;
IBOutlet UIButton* button1;
IBOutlet UIButton* button2;
IBOutlet UIButton* button3;
IBOutlet UIButton* button4;
IBOutlet UIView* pieView;
IBOutlet UIView* prView;
IBOutlet RipHoodProcessListController* prController;
@private
mach_port_t mHost;
vm_size_t mPageSize;
vm_statistics_data_t mVMStat;
vm_size_t mTotalPages;
CGPoint mPRViewOrigin;
NSMutableArray* mAirportButtons;
NSMutableArray* mBluetoothButtons;
NSMutableArray* mEDGEButtons;
NSMutableArray* mQuitButtons;
NSDictionary* mButtonsIndex;
void* mWiFiManagerClient;
}
@property (nonatomic, readonly) UIControl* overlayView;
@property (readonly) BOOL airportEnabled;
@property (assign) BOOL edgeEnabled;
- (IBAction)dismissController:(id)sender;
- (void)dismissController:(id)sender animated:(BOOL)animated;
- (IBAction)doRespring:(UIButton*)sender;
- (IBAction)doAirport:(UIButton*)sender;
- (IBAction)doBluetooth:(UIButton*)sender;
- (IBAction)doEDGE:(UIButton*)sender;
- (IBAction)doNothing:(UIButton*)sender;
- (IBAction)doSwitchToProcessList:(id)sender;
- (void)_updateMemoryPieChart;
- (void)_fetchVMStatistics;
- (void)updateLabel:(UILabel*)label withPages:(natural_t)pages name:(NSString*)name;
- (NSString *)byteSizeDescription:(double)dBytes;
- (void)_setupFromPrefs;
- (void)_setupButton:(UIButton*)button withID:(CFStringRef)ID;
- (void)_updateButtonStates;
@end