aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-23 14:51:04 (GMT)
committersimonb <simonb>2006-04-23 14:51:04 (GMT)
commit53f869aa528c6fee86d382ff4cfe6dc1046093c7 (patch)
treed6713a1a23193cc47392147f3e0611db9960bee4 /src/Remember.hh
parent39cacd1da802e4aa2cd4fdeacf0cf2b436d87dfa (diff)
downloadfluxbox-53f869aa528c6fee86d382ff4cfe6dc1046093c7.zip
fluxbox-53f869aa528c6fee86d382ff4cfe6dc1046093c7.tar.bz2
reload the apps file on flux reload
Diffstat (limited to 'src/Remember.hh')
-rw-r--r--src/Remember.hh13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Remember.hh b/src/Remember.hh
index 2fa2dd1..42edca3 100644
--- a/src/Remember.hh
+++ b/src/Remember.hh
@@ -35,6 +35,7 @@
35#include <list> 35#include <list>
36#include <string> 36#include <string>
37#include <utility> 37#include <utility>
38#include <memory>
38 39
39class FluxboxWindow; 40class FluxboxWindow;
40class BScreen; 41class BScreen;
@@ -193,7 +194,7 @@ public:
193 Application* find(WinClient &winclient); 194 Application* find(WinClient &winclient);
194 Application* add(WinClient &winclient); 195 Application* add(WinClient &winclient);
195 196
196 void load(); 197 void reconfigure(); // was load
197 void save(); 198 void save();
198 199
199 bool isRemembered(WinClient &win, Attribute attrib); 200 bool isRemembered(WinClient &win, Attribute attrib);
@@ -213,8 +214,6 @@ public:
213 // Functions we ignore (zero from AtomHandler) 214 // Functions we ignore (zero from AtomHandler)
214 // Leaving here in case they might be useful later 215 // Leaving here in case they might be useful later
215 216
216
217
218 void updateFocusedWindow(BScreen &, Window) { } 217 void updateFocusedWindow(BScreen &, Window) { }
219 void updateClientList(BScreen &screen) {} 218 void updateClientList(BScreen &screen) {}
220 void updateWorkspaceNames(BScreen &screen) {} 219 void updateWorkspaceNames(BScreen &screen) {}
@@ -233,16 +232,22 @@ public:
233 bool propertyNotify(WinClient &winclient, Atom the_property) { return false; } 232 bool propertyNotify(WinClient &winclient, Atom the_property) { return false; }
234 233
235 static Remember &instance() { return *s_instance; } 234 static Remember &instance() { return *s_instance; }
235
236private: 236private:
237 237
238 // returns number of lines read 238 // returns number of lines read
239 // optionally can give a line to read before the first (lookahead line) 239 // optionally can give a line to read before the first (lookahead line)
240 int parseApp(std::ifstream &file, Application &app, std::string *first_line = 0); 240 int parseApp(std::ifstream &file, Application &app, std::string *first_line = 0);
241 Patterns m_pats; 241
242 Application *findMatchingPatterns(ClientPattern *pat, Patterns *patlist, bool is_group);
243
244 std::auto_ptr<Patterns> m_pats;
242 Clients m_clients; 245 Clients m_clients;
243 246
244 Startups m_startups; 247 Startups m_startups;
245 static Remember *s_instance; 248 static Remember *s_instance;
249
250 time_t m_last_timestamp;
246}; 251};
247 252
248#endif // REMEMBER_HH 253#endif // REMEMBER_HH