-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.h
37 lines (31 loc) · 806 Bytes
/
App.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
#ifndef APP_H
#define APP_H
#include <Application.h>
#include <List.h>
#include <Directory.h>
#include <Entry.h>
#include <Node.h>
#include <MessageRunner.h>
class App: public BApplication
{
public:
App(void);
void MessageReceived(BMessage *msg);
private:
BList tracked_files; // BFile*
BList tracked_filepaths; //BPath*
//Lists for ignoring messages
BList removed_paths; //BPath*
bool ignore_removed(BPath *path);
BList edited_paths; //BPath*
bool ignore_edited(BPath *path);
BList new_paths; //BPath*
bool ignore_created(BPath *path);
BMessageRunner *msg_runner;
int32 find_nref_in_tracked_files(node_ref target);
void recursive_watch(BDirectory *dir);
void track_file(BEntry *new_file);
int parse_command(BString command);
void pull_and_apply_deltas();
};
#endif