23 #ifndef _TelepathyQt_referenced_handles_h_HEADER_GUARD_ 24 #define _TelepathyQt_referenced_handles_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/Constants> 31 #include <TelepathyQt/Types> 39 #include <QSharedDataPointer> 64 ConnectionPtr connection()
const;
86 return at(size() - 1);
89 uint value(
int i, uint defaultValue = 0)
const;
91 const_iterator begin()
const;
103 const_iterator end()
const;
105 bool contains(uint handle)
const;
107 int count(uint handle)
const;
121 return !isEmpty() && last() == handle;
124 int indexOf(uint handle,
int from = 0)
const;
126 bool isEmpty()
const;
128 int lastIndexOf(uint handle,
int from = -1)
const;
141 return !isEmpty() && first() == handle;
146 *
this = *
this + another;
150 void move(
int from,
int to);
159 return removeFirst();
162 int removeAll(uint handle);
164 void removeAt(
int i);
173 return removeAt(size() - 1);
176 bool removeOne(uint handle);
178 void swap(
int i,
int j);
189 return takeAt(size() - 1);
194 return !(*
this == another);
199 return !(*
this == another);
206 return *
this = (*
this + another);
211 return *
this += another;
228 return toList().toSet();
234 return toList().toStdList();
240 return toList().toVector();
254 friend struct Private;
255 QSharedDataPointer<Private> mPriv;
The PendingHandles class represents the parameters of and the reply to an asynchronous handle request...
Definition: pending-handles.h:46
bool operator==(const SUSocketAddress &v1, const SUSocketAddress &v2)
Definition: types.cpp:50
uint first() const
Definition: referenced-handles.h:74
bool startsWith(uint handle) const
Definition: referenced-handles.h:139
QVector< uint > toVector() const
Definition: referenced-handles.h:238
The ContactManager class is responsible for managing contacts.
Definition: contact-manager.h:50
Definition: build/TelepathyQt/_gen/types.h:109
UIntList::const_pointer const_pointer
Definition: referenced-handles.h:52
uint last() const
Definition: referenced-handles.h:84
QSet< uint > toSet() const
Definition: referenced-handles.h:226
const_iterator constBegin() const
Definition: referenced-handles.h:93
void removeLast()
Definition: referenced-handles.h:171
std::list< uint > toStdList() const
Definition: referenced-handles.h:232
int length() const
Definition: referenced-handles.h:130
QListIterator< uint > ReferencedHandlesIterator
Definition: referenced-handles.h:258
bool endsWith(uint handle) const
Definition: referenced-handles.h:119
void removeFirst()
Definition: referenced-handles.h:166
bool empty() const
Definition: referenced-handles.h:114
uint front() const
Definition: referenced-handles.h:79
uint operator[](int i) const
Definition: referenced-handles.h:219
Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles contain...
Definition: referenced-handles.h:47
The PendingContacts class is used by ContactManager when creating/updating Contact objects.
Definition: pending-contacts.h:46
const_iterator constEnd() const
Definition: referenced-handles.h:98
void append(const ReferencedHandles &another)
Definition: referenced-handles.h:144
bool operator!=(const ReferencedHandles &another) const
Definition: referenced-handles.h:192
int count() const
Definition: referenced-handles.h:109
ReferencedHandles & operator<<(const ReferencedHandles &another)
Definition: referenced-handles.h:209
UIntList::size_type size_type
Definition: referenced-handles.h:57
UIntList::ConstIterator ConstIterator
Definition: referenced-handles.h:51
uint back() const
Definition: referenced-handles.h:69
uint takeFirst()
Definition: referenced-handles.h:182
HandleType
Definition: build/TelepathyQt/_gen/constants.h:1375
UIntList::reference reference
Definition: referenced-handles.h:56
uint takeLast()
Definition: referenced-handles.h:187
void pop_back()
Definition: referenced-handles.h:152
UIntList::const_iterator const_iterator
Definition: referenced-handles.h:50
ReferencedHandles & operator+=(const ReferencedHandles &another)
Definition: referenced-handles.h:204
The PendingContactAttributes class represents the parameters of and the reply to an asynchronous requ...
Definition: pending-contact-attributes.h:40
UIntList::difference_type difference_type
Definition: referenced-handles.h:54
UIntList::pointer pointer
Definition: referenced-handles.h:55
Definition: abstract-adaptor.cpp:31
void pop_front()
Definition: referenced-handles.h:157
UIntList::const_reference const_reference
Definition: referenced-handles.h:53
bool operator!=(const UIntList &another) const
Definition: referenced-handles.h:197
UIntList::value_type value_type
Definition: referenced-handles.h:58