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;
bool startsWith(uint handle) const
Definition: referenced-handles.h:139
const_iterator constEnd() const
Definition: referenced-handles.h:98
uint front() const
Definition: referenced-handles.h:79
The ContactManager class is responsible for managing contacts.
Definition: contact-manager.h:50
QSet< uint > toSet() const
Definition: referenced-handles.h:226
HandleType
Definition: build/TelepathyQt/_gen/constants.h:1375
bool operator==(const SUSocketAddress &v1, const SUSocketAddress &v2)
Definition: types.cpp:50
bool empty() const
Definition: referenced-handles.h:114
void pop_front()
Definition: referenced-handles.h:157
The PendingHandles class represents the parameters of and the reply to an asynchronous handle request...
Definition: pending-handles.h:46
uint first() const
Definition: referenced-handles.h:74
bool operator!=(const ReferencedHandles &another) const
Definition: referenced-handles.h:192
void removeLast()
Definition: referenced-handles.h:171
void pop_back()
Definition: referenced-handles.h:152
ReferencedHandles & operator<<(const ReferencedHandles &another)
Definition: referenced-handles.h:209
uint operator[](int i) const
Definition: referenced-handles.h:219
int count() const
Definition: referenced-handles.h:109
Definition: build/TelepathyQt/_gen/types.h:101
bool operator!=(const UIntList &another) const
Definition: referenced-handles.h:197
uint takeLast()
Definition: referenced-handles.h:187
The PendingContacts class is used by ContactManager when creating/updating Contact objects...
Definition: pending-contacts.h:46
UIntList::const_pointer const_pointer
Definition: referenced-handles.h:52
Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles contain...
Definition: referenced-handles.h:47
UIntList::ConstIterator ConstIterator
Definition: referenced-handles.h:51
bool endsWith(uint handle) const
Definition: referenced-handles.h:119
UIntList::size_type size_type
Definition: referenced-handles.h:57
uint back() const
Definition: referenced-handles.h:69
void append(const ReferencedHandles &another)
Definition: referenced-handles.h:144
QListIterator< uint > ReferencedHandlesIterator
Definition: referenced-handles.h:258
ReferencedHandles & operator+=(const ReferencedHandles &another)
Definition: referenced-handles.h:204
int length() const
Definition: referenced-handles.h:130
UIntList::reference reference
Definition: referenced-handles.h:56
QVector< uint > toVector() const
Definition: referenced-handles.h:238
UIntList::difference_type difference_type
Definition: referenced-handles.h:54
std::list< uint > toStdList() const
Definition: referenced-handles.h:232
UIntList::const_iterator const_iterator
Definition: referenced-handles.h:50
uint last() const
Definition: referenced-handles.h:84
UIntList::pointer pointer
Definition: referenced-handles.h:55
UIntList::value_type value_type
Definition: referenced-handles.h:58
const_iterator constBegin() const
Definition: referenced-handles.h:93
void removeFirst()
Definition: referenced-handles.h:166
UIntList::const_reference const_reference
Definition: referenced-handles.h:53
uint takeFirst()
Definition: referenced-handles.h:182
The PendingContactAttributes class represents the parameters of and the reply to an asynchronous requ...
Definition: pending-contact-attributes.h:40