michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: #ifndef nsClipboard_h__ michael@0: #define nsClipboard_h__ michael@0: michael@0: #include "nsIClipboard.h" michael@0: #include "nsITransferable.h" michael@0: #include "nsIClipboardOwner.h" michael@0: #include "nsClipboardPrivacyHandler.h" michael@0: #include "nsAutoPtr.h" michael@0: #include "nsCOMPtr.h" michael@0: michael@0: #include michael@0: michael@0: /* Native Qt Clipboard wrapper */ michael@0: class nsClipboard : public nsIClipboard michael@0: { michael@0: public: michael@0: nsClipboard(); michael@0: virtual ~nsClipboard(); michael@0: michael@0: //nsISupports michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: // nsIClipboard michael@0: NS_DECL_NSICLIPBOARD michael@0: michael@0: protected: michael@0: NS_IMETHOD SetNativeClipboardData(nsITransferable *aTransferable, michael@0: QClipboard::Mode cbMode); michael@0: NS_IMETHOD GetNativeClipboardData(nsITransferable *aTransferable, michael@0: QClipboard::Mode cbMode); michael@0: michael@0: nsCOMPtr mSelectionOwner; michael@0: nsCOMPtr mGlobalOwner; michael@0: nsCOMPtr mSelectionTransferable; michael@0: nsCOMPtr mGlobalTransferable; michael@0: nsRefPtr mPrivacyHandler; michael@0: }; michael@0: michael@0: #endif // nsClipboard_h__