Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QDeclarativeXmlListModelPrivate Class Reference
Inheritance diagram for QDeclarativeXmlListModelPrivate:
QObjectPrivate QObjectData

Public Functions

void deleteReply ()
 
void notifyQueryStarted (bool remoteSource)
 
 QDeclarativeXmlListModelPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Static Public Functions

static void append_role (QDeclarativeListProperty< QDeclarativeXmlListModelRole > *list, QDeclarativeXmlListModelRole *role)
 
static void clear_role (QDeclarativeListProperty< QDeclarativeXmlListModelRole > *list)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Public Variables

QList< QList< QVariant > > data
 
QString errorString
 
int highestRole
 
bool isComponentComplete
 
QStringList keyRoleResultsCache
 
QString namespaces
 
qreal progress
 
QString query
 
int queryId
 
int redirectCount
 
QNetworkReplyreply
 
QStringList roleNames
 
QList< QDeclarativeXmlListModelRole * > roleObjects
 
QList< int > roles
 
int size
 
QUrl src
 
QDeclarativeXmlListModel::Status status
 
QString xml
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 

Detailed Description

Definition at line 533 of file qdeclarativexmllistmodel.cpp.

Constructors and Destructors

◆ QDeclarativeXmlListModelPrivate()

QDeclarativeXmlListModelPrivate::QDeclarativeXmlListModelPrivate ( )
inline

Functions

◆ append_role()

void QDeclarativeXmlListModelPrivate::append_role ( QDeclarativeListProperty< QDeclarativeXmlListModelRole > *  list,
QDeclarativeXmlListModelRole role 
)
static

Definition at line 586 of file qdeclarativexmllistmodel.cpp.

Referenced by QDeclarativeXmlListModel::roleObjects().

587 {
589  if (_this && role) {
590  int i = _this->d_func()->roleObjects.count();
591  _this->d_func()->roleObjects.append(role);
592  if (_this->d_func()->roleNames.contains(role->name())) {
593  qmlInfo(role) << QObject::tr("\"%1\" duplicates a previous role name and will be disabled.").arg(role->name());
594  return;
595  }
596  _this->d_func()->roles.insert(i, _this->d_func()->highestRole);
597  _this->d_func()->roleNames.insert(i, role->name());
598  ++_this->d_func()->highestRole;
599  }
600 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QDeclarativeListProperty< QDeclarativeXmlListModelRole > roles
QDeclarativeListProperty< QDeclarativeXmlListModelRole > roleObjects()
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186
QDeclarativeInfo qmlInfo(const QObject *me)

◆ clear_role()

void QDeclarativeXmlListModelPrivate::clear_role ( QDeclarativeListProperty< QDeclarativeXmlListModelRole > *  list)
static

Definition at line 604 of file qdeclarativexmllistmodel.cpp.

Referenced by QDeclarativeXmlListModel::roleObjects().

605 {
606  QDeclarativeXmlListModel *_this = static_cast<QDeclarativeXmlListModel *>(list->object);
607  _this->d_func()->roles.clear();
608  _this->d_func()->roleNames.clear();
609  _this->d_func()->roleObjects.clear();
610 }
QDeclarativeListProperty< QDeclarativeXmlListModelRole > roles
QDeclarativeListProperty< QDeclarativeXmlListModelRole > roleObjects()

◆ deleteReply()

void QDeclarativeXmlListModelPrivate::deleteReply ( )
inline

Definition at line 552 of file qdeclarativexmllistmodel.cpp.

552  {
554  if (reply) {
555  QObject::disconnect(reply, 0, q, 0);
556  reply->deleteLater();
557  reply = 0;
558  }
559  }
#define Q_Q(Class)
Definition: qglobal.h:2483
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
Disconnects signal in object sender from method in object receiver.
Definition: qobject.cpp:2895
void deleteLater()
Schedules this object for deletion.
Definition: qobject.cpp:2145

◆ notifyQueryStarted()

void QDeclarativeXmlListModelPrivate::notifyQueryStarted ( bool  remoteSource)
inline

Definition at line 543 of file qdeclarativexmllistmodel.cpp.

543  {
545  progress = remoteSource ? qreal(0.0) : qreal(1.0);
547  errorString.clear();
548  emit q->progressChanged(progress);
549  emit q->statusChanged(status);
550  }
double qreal
Definition: qglobal.h:1193
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
void clear()
Clears the contents of the string and makes it empty.
Definition: qstring.h:723
QDeclarativeXmlListModel::Status status

Properties

◆ data

QList<QList<QVariant> > QDeclarativeXmlListModelPrivate::data

Definition at line 581 of file qdeclarativexmllistmodel.cpp.

◆ errorString

QString QDeclarativeXmlListModelPrivate::errorString

Definition at line 573 of file qdeclarativexmllistmodel.cpp.

◆ highestRole

int QDeclarativeXmlListModelPrivate::highestRole

Definition at line 569 of file qdeclarativexmllistmodel.cpp.

◆ isComponentComplete

bool QDeclarativeXmlListModelPrivate::isComponentComplete

Definition at line 561 of file qdeclarativexmllistmodel.cpp.

◆ keyRoleResultsCache

QStringList QDeclarativeXmlListModelPrivate::keyRoleResultsCache

Definition at line 576 of file qdeclarativexmllistmodel.cpp.

◆ namespaces

QString QDeclarativeXmlListModelPrivate::namespaces

Definition at line 565 of file qdeclarativexmllistmodel.cpp.

◆ progress

qreal QDeclarativeXmlListModelPrivate::progress

Definition at line 574 of file qdeclarativexmllistmodel.cpp.

◆ query

QString QDeclarativeXmlListModelPrivate::query

Definition at line 564 of file qdeclarativexmllistmodel.cpp.

◆ queryId

int QDeclarativeXmlListModelPrivate::queryId

Definition at line 575 of file qdeclarativexmllistmodel.cpp.

◆ redirectCount

int QDeclarativeXmlListModelPrivate::redirectCount

Definition at line 582 of file qdeclarativexmllistmodel.cpp.

◆ reply

QNetworkReply* QDeclarativeXmlListModelPrivate::reply

Definition at line 571 of file qdeclarativexmllistmodel.cpp.

◆ roleNames

QStringList QDeclarativeXmlListModelPrivate::roleNames

Definition at line 568 of file qdeclarativexmllistmodel.cpp.

◆ roleObjects

QList<QDeclarativeXmlListModelRole *> QDeclarativeXmlListModelPrivate::roleObjects

Definition at line 577 of file qdeclarativexmllistmodel.cpp.

◆ roles

QList<int> QDeclarativeXmlListModelPrivate::roles

Definition at line 567 of file qdeclarativexmllistmodel.cpp.

◆ size

int QDeclarativeXmlListModelPrivate::size

Definition at line 566 of file qdeclarativexmllistmodel.cpp.

◆ src

QUrl QDeclarativeXmlListModelPrivate::src

Definition at line 562 of file qdeclarativexmllistmodel.cpp.

◆ status

QDeclarativeXmlListModel::Status QDeclarativeXmlListModelPrivate::status

Definition at line 572 of file qdeclarativexmllistmodel.cpp.

◆ xml

QString QDeclarativeXmlListModelPrivate::xml

Definition at line 563 of file qdeclarativexmllistmodel.cpp.


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