1 /* 2 * Copyright 2017 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Brian Hill 7 */ 8 #ifndef REPOSITORIES_WINDOW_H 9 #define REPOSITORIES_WINDOW_H 10 11 12 #include <Node.h> 13 #include <Window.h> 14 15 #include "AddRepoWindow.h" 16 #include "RepositoriesSettings.h" 17 #include "RepositoriesView.h" 18 19 20 class RepositoriesWindow : public BWindow { 21 public: 22 RepositoriesWindow(); 23 ~RepositoriesWindow(); 24 virtual bool QuitRequested(); 25 virtual void MessageReceived(BMessage*); 26 27 private: 28 void _StartWatching(); 29 void _StopWatching(); 30 31 RepositoriesSettings fSettings; 32 RepositoriesView* fView; 33 AddRepoWindow* fAddWindow; 34 BMessenger fMessenger; 35 node_ref fPackageNodeRef; 36 // node_ref to watch for changes to package-repositories directory 37 status_t fPackageNodeStatus; 38 bool fWatchingPackageNode; 39 // true when package-repositories directory is being watched 40 }; 41 42 43 #endif 44