-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindowTracker.h
More file actions
38 lines (25 loc) · 837 Bytes
/
WindowTracker.h
File metadata and controls
38 lines (25 loc) · 837 Bytes
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
//
// WindowTracker.h
// TrackingFramework
//
// Created by Sylvain Malacria on 10/07/15.
// Copyright (c) 2015 Sylvain Malacria. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XMLFileAccessMethods.h"
#import "WindowInfoEvent.h"
@protocol WindowTrackerDelegate <NSObject>
@required
-(void)windowInfoEventHappened:(WindowInfoEvent*)windowEvent;
@end
@interface WindowTracker : NSObject
@property NSTimer *timer;
@property XMLFileAccessMethods* xmlFileAccess; // The xml document corresponding to all the events
@property(nonatomic,assign)id<WindowTrackerDelegate> windowTrackerDelegate;
-(id)initWithDelay:(float)delay andXMLFileAccess:(XMLFileAccessMethods*)xml;
// retrieve an array of current window snapshots
+(NSArray*)getCurrentWindowsInfo;
-(void)update;
-(void)printWindows;
-(void)stop;
@end