2 * Copyright 2007-2009, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Gabe Yoder, gyoder@stny.rr.com
14 #include <Messenger.h>
20 B_CLIPBOARD_CHANGED
= 'CLCH'
25 BClipboard(const char* name
,
26 bool transient
= false);
27 virtual ~BClipboard();
29 const char* Name() const;
31 uint32
LocalCount() const;
32 uint32
SystemCount() const;
33 status_t
StartWatching(BMessenger target
);
34 status_t
StopWatching(BMessenger target
);
38 bool IsLocked() const;
42 status_t
Commit(bool failIfChanged
);
45 BMessenger
DataSource() const;
46 BMessage
* Data() const;
49 BClipboard(const BClipboard
&);
50 BClipboard
& operator=(const BClipboard
&);
52 virtual void _ReservedClipboard1();
53 virtual void _ReservedClipboard2();
54 virtual void _ReservedClipboard3();
56 bool _AssertLocked() const;
57 status_t
_DownloadFromSystem(bool force
= false);
58 status_t
_UploadToSystem();
63 BMessenger fClipHandler
;
64 BMessenger fDataSource
;
70 extern BClipboard
* be_clipboard
;
72 #endif // _CLIPBOARD_H