Really really useless clipboard size data source (both flattened message size and plain text size). I should rather go to sleep than write useless code :D

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25014 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-04-18 00:12:40 +00:00
parent e8fa461ae7
commit e034d18f42
6 changed files with 194 additions and 26 deletions
+20
View File
@@ -227,4 +227,24 @@ private:
bigtime_t fPreviousTime;
};
class ClipboardSizeDataSource : public DataSource {
public:
ClipboardSizeDataSource(bool text);
ClipboardSizeDataSource(
const ClipboardSizeDataSource& other);
virtual ~ClipboardSizeDataSource();
virtual DataSource* Copy() const;
virtual int64 NextValue(SystemInfo& info);
virtual const char* Label() const;
virtual const char* Unit() const;
virtual bool AdaptiveScale() const;
private:
bool fText;
};
#endif // DATA_SOURCE_H