Qt 4.8
Public Functions | Public Variables | Static Public Variables | Private Functions | Properties | List of all members
QClipboardData Class Reference

Public Functions

void clear ()
 
void clear ()
 
 QClipboardData ()
 
 QClipboardData ()
 
 QClipboardData ()
 
 QClipboardData (QClipboard::Mode mode)
 
void releaseIData ()
 
void setSource (QMimeData *s)
 
void setSource (QMimeData *s)
 
void setSource (QMimeData *s)
 
QMimeDatasource ()
 
QMimeDatasource ()
 
QMimeDatasource () const
 
 ~QClipboardData ()
 
 ~QClipboardData ()
 
 ~QClipboardData ()
 
 ~QClipboardData ()
 

Public Variables

QWidgetclipBoardViewer
 
QOleDataObjectiData
 
QClipboard::Mode mode
 
HWND nextClipboardViewer
 
Time timestamp
 
QClipboardWatcher watcher
 

Static Public Variables

static QMimeDataclipboardData = 0
 
static QMimeDataselectionData = 0
 

Private Functions

QMimeData *& mimeDataRef () const
 

Properties

QMimeDatasrc
 

Detailed Description

Definition at line 105 of file qclipboard_qws.cpp.

Constructors and Destructors

◆ QClipboardData() [1/4]

QClipboardData::QClipboardData ( )

Definition at line 144 of file qclipboard_qws.cpp.

Referenced by clipboardData(), and source().

145 {
146  src = 0;
147 #if 0
148  tindex=0;
149 #endif
150 }

◆ ~QClipboardData() [1/4]

QClipboardData::~QClipboardData ( )

Definition at line 152 of file qclipboard_qws.cpp.

Referenced by QClipboardData(), and source().

153 {
154  delete src;
155 }

◆ QClipboardData() [2/4]

QClipboardData::QClipboardData ( )
inline

Definition at line 141 of file qclipboard_win.cpp.

142  : iData(0)
144  {
145  clipBoardViewer = new QWidget();
147  clipBoardViewer->setObjectName(QLatin1String("internal clipboard owner"));
148  // We don't need this internal widget to appear in QApplication::topLevelWidgets()
151  }
bool remove(const T &value)
Definition: qset.h:89
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
void setObjectName(const QString &name)
Definition: qobject.cpp:1112
QWidget * clipBoardViewer
QOleDataObject * iData
static QWidgetSet * allWidgets
Definition: qwidget_p.h:715
void createWinId()
Definition: qwidget.cpp:2626

◆ ~QClipboardData() [2/4]

QClipboardData::~QClipboardData ( )
inline

Definition at line 153 of file qclipboard_win.cpp.

154  {
157  delete clipBoardViewer;
158  releaseIData();
159  }
#define ChangeClipboardChain(a, b)
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QWidget * clipBoardViewer
bool testAttribute(Qt::WidgetAttribute) const
Returns true if attribute attribute is set on this widget; otherwise returns false.
Definition: qwidget.h:1041
WId internalWinId() const
Returns the window system identifier of the widget, or 0 if the widget is not created yet...
Definition: qwidget.h:244

◆ QClipboardData() [3/4]

QClipboardData::QClipboardData ( QClipboard::Mode  mode)

Definition at line 214 of file qclipboard_x11.cpp.

215 {
216  timestamp = CurrentTime;
217  mode = clipboardMode;
218 }
QClipboard::Mode mode

◆ ~QClipboardData() [3/4]

QClipboardData::~QClipboardData ( )

◆ QClipboardData() [4/4]

QClipboardData::QClipboardData ( )

◆ ~QClipboardData() [4/4]

QClipboardData::~QClipboardData ( )

Functions

◆ clear() [1/2]

void QClipboardData::clear ( )

Definition at line 157 of file qclipboard_qws.cpp.

Referenced by QClipboardWatcher::getDataInFormat(), qt_check_clipboard_sentinel(), qt_check_selection_sentinel(), and source().

158 {
159  delete src;
160  src = 0;
161 }

◆ clear() [2/2]

void QClipboardData::clear ( )
inline

Definition at line 193 of file qclipboard_x11.cpp.

194  {
195  timestamp = CurrentTime;
196  if (selectionData == clipboardData) {
197  mimeDataRef() = 0;
198  } else {
199  QMimeData *&src = mimeDataRef();
200  delete src;
201  src = 0;
202  }
203  }
static QMimeData * selectionData
The QMimeData class provides a container for data that records information about its MIME type...
Definition: qmimedata.h:57
QMimeData *& mimeDataRef() const
static QMimeData * clipboardData

◆ mimeDataRef()

QMimeData*& QClipboardData::mimeDataRef ( ) const
inlineprivate

Definition at line 163 of file qclipboard_x11.cpp.

164  {
166  return selectionData;
167  return clipboardData;
168  }
static QMimeData * selectionData
QClipboard::Mode mode
static QMimeData * clipboardData

◆ releaseIData()

void QClipboardData::releaseIData ( )
inline

Definition at line 161 of file qclipboard_win.cpp.

Referenced by isProcessBeingDebugged(), and QClipboard::~QClipboard().

162  {
163  if (iData) {
164  delete iData->mimeData();
165  iData->releaseQt();
166  iData->Release();
167  iData = 0;
168  }
169  }
void releaseQt()
Definition: qdnd_win.cpp:89
QOleDataObject * iData
const QMimeData * mimeData() const
Definition: qdnd_win.cpp:94

◆ setSource() [1/3]

void QClipboardData::setSource ( QMimeData s)
inline

Definition at line 55 of file qplatformclipboard_qpa.cpp.

56  {
57  if (s == src)
58  return;
59  delete src;
60  src = s;
61  }

◆ setSource() [2/3]

void QClipboardData::setSource ( QMimeData s)
inline

Definition at line 111 of file qclipboard_qws.cpp.

Referenced by clipboardData(), and QClipboardWatcher::getDataInFormat().

112  {
113  if (s == src)
114  return;
115  delete src;
116  src = s;
117  }

◆ setSource() [3/3]

void QClipboardData::setSource ( QMimeData s)
inline

Definition at line 174 of file qclipboard_x11.cpp.

175  {
176  if ((mode == QClipboard::Selection && selectionData == s)
177  || clipboardData == s) {
178  return;
179  }
180 
181  if (selectionData != clipboardData) {
182  delete mimeDataRef();
183  }
184 
185  mimeDataRef() = s;
186  }
static QMimeData * selectionData
QClipboard::Mode mode
QMimeData *& mimeDataRef() const
static QMimeData * clipboardData

◆ source() [1/3]

QMimeData* QClipboardData::source ( )
inline

Definition at line 62 of file qplatformclipboard_qpa.cpp.

63  { return src; }

◆ source() [2/3]

QMimeData* QClipboardData::source ( )
inline

◆ source() [3/3]

QMimeData* QClipboardData::source ( ) const
inline

Definition at line 188 of file qclipboard_x11.cpp.

189  {
190  return mimeDataRef();
191  }
QMimeData *& mimeDataRef() const

Properties

◆ clipboardData

QMimeData * QClipboardData::clipboardData = 0
static

Definition at line 206 of file qclipboard_x11.cpp.

Referenced by clipboardData().

◆ clipBoardViewer

QWidget* QClipboardData::clipBoardViewer

◆ iData

QOleDataObject* QClipboardData::iData

Definition at line 171 of file qclipboard_win.cpp.

Referenced by isProcessBeingDebugged(), and QClipboard::~QClipboard().

◆ mode

QClipboard::Mode QClipboardData::mode

Definition at line 208 of file qclipboard_x11.cpp.

Referenced by clipboardData().

◆ nextClipboardViewer

HWND QClipboardData::nextClipboardViewer

Definition at line 173 of file qclipboard_win.cpp.

Referenced by clipboardData(), and isProcessBeingDebugged().

◆ selectionData

QMimeData * QClipboardData::selectionData = 0
static

Definition at line 205 of file qclipboard_x11.cpp.

◆ src

QMimeData * QClipboardData::src
private

◆ timestamp

Time QClipboardData::timestamp

◆ watcher

QClipboardWatcher QClipboardData::watcher

Definition at line 174 of file qclipboard_win.cpp.

Referenced by isProcessBeingDebugged().


The documentation for this class was generated from the following files: