Home · All Classes · All Namespaces · Modules · Functions · Files

ReferencedHandles Class Reference
[Connection proxies]

#include <TelepathyQt4/ReferencedHandles>

List of all members.

Public Types

Public Member Functions


Detailed Description

Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles container is guaranteed to be valid (and stay valid, as long it's in at least one ReferencedHandles container).

The class offers a QList-style API. However, from the mutable operations, only the operations for which the validity guarantees can be preserved are provided. This means no functions which can add an arbitrary handle to the container are included - the only way to add handles to the container is to reference them using Connection::referenceHandles() and appending the resulting ReferenceHandles instance.

ReferencedHandles is a implicitly shared class.


Member Typedef Documentation

typedef UIntList::const_iterator const_iterator

typedef UIntList::ConstIterator ConstIterator

typedef UIntList::const_pointer const_pointer

typedef UIntList::const_reference const_reference

typedef UIntList::difference_type difference_type

typedef UIntList::pointer pointer

typedef UIntList::reference reference

typedef UIntList::size_type size_type

typedef UIntList::value_type value_type


Constructor & Destructor Documentation

ReferencedHandles ( const ReferencedHandles other  ) 


Member Function Documentation

ConnectionPtr connection (  )  const

uint handleType (  )  const

uint at ( int  i  )  const

uint back (  )  const [inline]

uint first (  )  const [inline]

uint front (  )  const [inline]

uint last (  )  const [inline]

uint value ( int  i,
uint  defaultValue = 0 
) const

ReferencedHandles::const_iterator begin (  )  const

const_iterator constBegin (  )  const [inline]

const_iterator constEnd (  )  const [inline]

bool contains ( uint  handle  )  const

int count ( uint  handle  )  const

int count (  )  const [inline]

bool empty (  )  const [inline]

bool endsWith ( uint  handle  )  const [inline]

int indexOf ( uint  handle,
int  from = 0 
) const

bool isEmpty (  )  const

int lastIndexOf ( uint  handle,
int  from = -1 
) const

int length (  )  const [inline]

ReferencedHandles mid ( int  pos,
int  length = -1 
) const

int size (  )  const

bool startsWith ( uint  handle  )  const [inline]

void append ( const ReferencedHandles another  )  [inline]

void clear (  ) 

void move ( int  from,
int  to 
)

void pop_back (  )  [inline]

void pop_front (  )  [inline]

int removeAll ( uint  handle  ) 

void removeAt ( int  i  ) 

void removeFirst (  )  [inline]

void removeLast (  )  [inline]

bool removeOne ( uint  handle  ) 

void swap ( int  i,
int  j 
)

uint takeAt ( int  i  ) 

uint takeFirst (  )  [inline]

uint takeLast (  )  [inline]

bool operator!= ( const ReferencedHandles another  )  const [inline]

bool operator!= ( const UIntList another  )  const [inline]

ReferencedHandles operator+ ( const ReferencedHandles another  )  const

ReferencedHandles& operator+= ( const ReferencedHandles another  )  [inline]

ReferencedHandles& operator<< ( const ReferencedHandles another  )  [inline]

ReferencedHandles & operator= ( const ReferencedHandles another  ) 

bool operator== ( const ReferencedHandles another  )  const

bool operator== ( const UIntList list  )  const

uint operator[] ( int  i  )  const [inline]

UIntList toList (  )  const

QSet<uint> toSet (  )  const [inline]

std::list<uint> toStdList (  )  const [inline]

QVector<uint> toVector (  )  const [inline]


Copyright © 2009 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.1.10