Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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"
11 #include "nsClipboardPrivacyHandler.h"
12 #include "nsAutoPtr.h"
13 #include "nsCOMPtr.h"
15 #include <qclipboard.h>
17 /* Native Qt Clipboard wrapper */
18 class nsClipboard : public nsIClipboard
19 {
20 public:
21 nsClipboard();
22 virtual ~nsClipboard();
24 //nsISupports
25 NS_DECL_ISUPPORTS
27 // nsIClipboard
28 NS_DECL_NSICLIPBOARD
30 protected:
31 NS_IMETHOD SetNativeClipboardData(nsITransferable *aTransferable,
32 QClipboard::Mode cbMode);
33 NS_IMETHOD GetNativeClipboardData(nsITransferable *aTransferable,
34 QClipboard::Mode cbMode);
36 nsCOMPtr<nsIClipboardOwner> mSelectionOwner;
37 nsCOMPtr<nsIClipboardOwner> mGlobalOwner;
38 nsCOMPtr<nsITransferable> mSelectionTransferable;
39 nsCOMPtr<nsITransferable> mGlobalTransferable;
40 nsRefPtr<nsClipboardPrivacyHandler> mPrivacyHandler;
41 };
43 #endif // nsClipboard_h__