1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/qt/nsClipboard.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 +#ifndef nsClipboard_h__ 1.9 +#define nsClipboard_h__ 1.10 + 1.11 +#include "nsIClipboard.h" 1.12 +#include "nsITransferable.h" 1.13 +#include "nsIClipboardOwner.h" 1.14 +#include "nsClipboardPrivacyHandler.h" 1.15 +#include "nsAutoPtr.h" 1.16 +#include "nsCOMPtr.h" 1.17 + 1.18 +#include <qclipboard.h> 1.19 + 1.20 +/* Native Qt Clipboard wrapper */ 1.21 +class nsClipboard : public nsIClipboard 1.22 +{ 1.23 +public: 1.24 + nsClipboard(); 1.25 + virtual ~nsClipboard(); 1.26 + 1.27 + //nsISupports 1.28 + NS_DECL_ISUPPORTS 1.29 + 1.30 + // nsIClipboard 1.31 + NS_DECL_NSICLIPBOARD 1.32 + 1.33 +protected: 1.34 + NS_IMETHOD SetNativeClipboardData(nsITransferable *aTransferable, 1.35 + QClipboard::Mode cbMode); 1.36 + NS_IMETHOD GetNativeClipboardData(nsITransferable *aTransferable, 1.37 + QClipboard::Mode cbMode); 1.38 + 1.39 + nsCOMPtr<nsIClipboardOwner> mSelectionOwner; 1.40 + nsCOMPtr<nsIClipboardOwner> mGlobalOwner; 1.41 + nsCOMPtr<nsITransferable> mSelectionTransferable; 1.42 + nsCOMPtr<nsITransferable> mGlobalTransferable; 1.43 + nsRefPtr<nsClipboardPrivacyHandler> mPrivacyHandler; 1.44 +}; 1.45 + 1.46 +#endif // nsClipboard_h__