Bug 1073336 part 5 - Add AnimationPlayerCollection::PlayerUpdated; r=dbaron
[gecko.git] / widget / qt / nsClipboard.h
blobd348c4b551af071eb0a7fb07c852d57704d53998
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 "nsCOMPtr.h"
13 #include <qclipboard.h>
15 /* Native Qt Clipboard wrapper */
16 class nsClipboard : public nsIClipboard
18 public:
19 nsClipboard();
21 //nsISupports
22 NS_DECL_ISUPPORTS
24 // nsIClipboard
25 NS_DECL_NSICLIPBOARD
27 protected:
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__