1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsClipboard_h__
6 #define nsClipboard_h__
8 #include "nsIClipboard.h"
9 #include "nsITransferable.h"
10 #include "nsIClipboardOwner.h"
13 #include <qclipboard.h>
15 /* Native Qt Clipboard wrapper */
16 class nsClipboard
: public nsIClipboard
28 virtual ~nsClipboard();
30 NS_IMETHOD
SetNativeClipboardData(nsITransferable
*aTransferable
,
31 QClipboard::Mode cbMode
);
32 NS_IMETHOD
GetNativeClipboardData(nsITransferable
*aTransferable
,
33 QClipboard::Mode cbMode
);
35 nsCOMPtr
<nsIClipboardOwner
> mSelectionOwner
;
36 nsCOMPtr
<nsIClipboardOwner
> mGlobalOwner
;
37 nsCOMPtr
<nsITransferable
> mSelectionTransferable
;
38 nsCOMPtr
<nsITransferable
> mGlobalTransferable
;
41 #endif // nsClipboard_h__