Qt 4.8
Public Functions | Private Functions | Properties | List of all members
QWindowsMimeList Class Reference

Public Functions

void addWindowsMime (QWindowsMime *mime)
 
 QWindowsMimeList ()
 
void removeWindowsMime (QWindowsMime *mime)
 
QList< QWindowsMime * > windowsMimes ()
 
 ~QWindowsMimeList ()
 

Private Functions

void init ()
 

Properties

bool initialized
 
QList< QWindowsMime * > mimes
 

Detailed Description

Definition at line 201 of file qmime_win.cpp.

Constructors and Destructors

◆ QWindowsMimeList()

QWindowsMimeList::QWindowsMimeList ( )

Definition at line 1339 of file qmime_win.cpp.

1340  : initialized(false)
1341 {
1342 }

◆ ~QWindowsMimeList()

QWindowsMimeList::~QWindowsMimeList ( )

Definition at line 1344 of file qmime_win.cpp.

1345 {
1346  while (mimes.size())
1347  delete mimes.first();
1348 }
QList< QWindowsMime * > mimes
Definition: qmime_win.cpp:213
T & first()
Returns a reference to the first item in the list.
Definition: qlist.h:282
int size() const
Returns the number of items in the list.
Definition: qlist.h:137

Functions

◆ addWindowsMime()

void QWindowsMimeList::addWindowsMime ( QWindowsMime mime)

Definition at line 1367 of file qmime_win.cpp.

1368 {
1369  init();
1370  mimes.append(mime);
1371 }
QList< QWindowsMime * > mimes
Definition: qmime_win.cpp:213
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507

◆ init()

void QWindowsMimeList::init ( )
private

Definition at line 1351 of file qmime_win.cpp.

Referenced by addWindowsMime(), removeWindowsMime(), and windowsMimes().

1352 {
1353  if (!initialized) {
1354  initialized = true;
1355 #ifndef QT_NO_IMAGEFORMAT_BMP
1356  new QWindowsMimeImage;
1357 #endif
1358  new QLastResortMimes;
1359  new QWindowsMimeText;
1360  new QWindowsMimeURI;
1361 
1362  new QWindowsMimeHtml;
1363  new QBuiltInMimes;
1364  }
1365 }

◆ removeWindowsMime()

void QWindowsMimeList::removeWindowsMime ( QWindowsMime mime)

Definition at line 1373 of file qmime_win.cpp.

1374 {
1375  init();
1376  mimes.removeAll(mime);
1377 }
QList< QWindowsMime * > mimes
Definition: qmime_win.cpp:213
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.
Definition: qlist.h:770

◆ windowsMimes()

QList< QWindowsMime * > QWindowsMimeList::windowsMimes ( )

Definition at line 1379 of file qmime_win.cpp.

1380 {
1381  init();
1382  return mimes;
1383 }
QList< QWindowsMime * > mimes
Definition: qmime_win.cpp:213

Properties

◆ initialized

bool QWindowsMimeList::initialized
private

Definition at line 212 of file qmime_win.cpp.

Referenced by init().

◆ mimes

QList<QWindowsMime*> QWindowsMimeList::mimes
private

Definition at line 213 of file qmime_win.cpp.

Referenced by addWindowsMime(), removeWindowsMime(), windowsMimes(), and ~QWindowsMimeList().


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