Mercurial > mercurial > hgweb_qlipbrd.cgi
view include/qdata.h @ 3:fd4361d2cbbd default tip
add remember function.
author | pyon@macmini |
---|---|
date | Thu, 24 Sep 2015 07:45:26 +0900 |
parents | 50d9f4e2a540 |
children |
line wrap: on
line source
// Filename: qdata.h // Last Change: 2015-09-24 Thu 06:09:33. // #ifndef __QDATA_H__ #define __QDATA_H__ class QlipData { public: int id; // key wxString text; bool overwrite; int max_active_time; int max_live_time; int active_time; int live_time; bool remember; wxString desc; bool IsArrived() { active_time++; if ( max_active_time == active_time ) { active_time = 0; return true; } return false; }; bool IsAlive() { if ( live_time == 0 ) return false; return true; } void Kill() { live_time = 0; active_time = 0; text = wxEmptyString; } }; #endif //__QDATA_H__