summaryrefslogtreecommitdiff
path: root/qt4
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-10-08 15:38:51 +0300
committerOlli Salli <ollisal@gmail.com>2011-10-10 19:17:43 +0300
commit8dbb49b5e169b08ce9de5cfac6fbda9ee3483f69 (patch)
treec0ca7e5d7019d3264827ddd0cac7571e7ac24422 /qt4
parentfaad31c975da7e9fe0bb8af0ef00fb96fccfc383 (diff)
Doxyment ST[SC] pair wrapper types
Diffstat (limited to 'qt4')
-rw-r--r--qt4/TelepathyQt4/stream-tube-client.cpp51
-rw-r--r--qt4/TelepathyQt4/stream-tube-server.cpp103
2 files changed, 154 insertions, 0 deletions
diff --git a/qt4/TelepathyQt4/stream-tube-client.cpp b/qt4/TelepathyQt4/stream-tube-client.cpp
index b906a0efe..87bd4a0c4 100644
--- a/qt4/TelepathyQt4/stream-tube-client.cpp
+++ b/qt4/TelepathyQt4/stream-tube-client.cpp
@@ -46,11 +46,28 @@ struct TELEPATHY_QT4_NO_EXPORT StreamTubeClient::Tube::Private : public QSharedD
// empty placeholder for now
};
+/**
+ * \class StreamTubeClient::Tube
+ * \ingroup serverclient
+ * \headerfile TelepathyQt4/stream-tube-client.h <TelepathyQt4/StreamTubeClient>
+ *
+ * \brief The StreamTubeClient::Tube class represents a tube being handled by the client.
+ */
+
+/**
+ * Constructs a new invalid Tube instance.
+ */
StreamTubeClient::Tube::Tube()
{
// invalid instance
}
+/**
+ * Constructs a Tube instance for the given tube \a channel from the given \a account.
+ *
+ * \param account A pointer to the account the online connection of which the tube originates from.
+ * \param channel A pointer to the tube channel object.
+ */
StreamTubeClient::Tube::Tube(
const AccountPtr &account,
const IncomingStreamTubeChannelPtr &channel)
@@ -58,6 +75,9 @@ StreamTubeClient::Tube::Tube(
{
}
+/**
+ * Copy constructor.
+ */
StreamTubeClient::Tube::Tube(
const Tube &other)
: QPair<AccountPtr, IncomingStreamTubeChannelPtr>(other.account(), other.channel()),
@@ -65,11 +85,17 @@ StreamTubeClient::Tube::Tube(
{
}
+/**
+ * Class destructor.
+ */
StreamTubeClient::Tube::~Tube()
{
// mPriv deleted automatically
}
+/**
+ * Assignment operator.
+ */
StreamTubeClient::Tube &StreamTubeClient::Tube::operator=(
const Tube &other)
{
@@ -84,6 +110,31 @@ StreamTubeClient::Tube &StreamTubeClient::Tube::operator=(
return *this;
}
+/**
+ * \fn bool StreamTubeClient::Tube::isValid() const
+ *
+ * Return whether or not the tube is valid or is just the null object created using the default
+ * constructor.
+ *
+ * \return \c true if valid, \c false otherwise.
+ */
+
+/**
+ * \fn AccountPtr StreamTubeClient::Tube::account() const
+ *
+ * Return the account from which the tube originates.
+ *
+ * \return A pointer to the account object.
+ */
+
+/**
+ * \fn IncomingStreamTubeChannelPtr StreamTubeClient::Tube::channel() const
+ *
+ * Return the actual tube channel.
+ *
+ * \return A pointer to the channel.
+ */
+
struct TELEPATHY_QT4_NO_EXPORT StreamTubeClient::Private
{
Private(const ClientRegistrarPtr &registrar,
diff --git a/qt4/TelepathyQt4/stream-tube-server.cpp b/qt4/TelepathyQt4/stream-tube-server.cpp
index 3b3e579f3..28d5e5c23 100644
--- a/qt4/TelepathyQt4/stream-tube-server.cpp
+++ b/qt4/TelepathyQt4/stream-tube-server.cpp
@@ -63,11 +63,29 @@ struct TELEPATHY_QT4_NO_EXPORT StreamTubeServer::RemoteContact::Private : public
// empty placeholder for now
};
+/**
+ * \class StreamTubeServer::RemoteContact
+ * \ingroup serverclient
+ * \headerfile TelepathyQt4/stream-tube-server.h <TelepathyQt4/StreamTubeServer>
+ *
+ * \brief The StreamTubeServer::RemoteContact class represents a contact from which a socket
+ * connection to our exported socket originates.
+ */
+
+/**
+ * Constructs a new invalid RemoteContact instance.
+ */
StreamTubeServer::RemoteContact::RemoteContact()
{
// invalid instance
}
+/**
+ * Constructs a new RemoteContact for the given \a contact object from the given \a account.
+ *
+ * \param account A pointer to the account which this contact can be reached through.
+ * \param contact A pointer to the contact object.
+ */
StreamTubeServer::RemoteContact::RemoteContact(
const AccountPtr &account,
const ContactPtr &contact)
@@ -75,17 +93,26 @@ StreamTubeServer::RemoteContact::RemoteContact(
{
}
+/**
+ * Copy constructor.
+ */
StreamTubeServer::RemoteContact::RemoteContact(
const RemoteContact &other)
: QPair<AccountPtr, ContactPtr>(other.account(), other.contact()), mPriv(other.mPriv)
{
}
+/**
+ * Class destructor.
+ */
StreamTubeServer::RemoteContact::~RemoteContact()
{
// mPriv deleted automatically
}
+/**
+ * Assignment operator.
+ */
StreamTubeServer::RemoteContact &StreamTubeServer::RemoteContact::operator=(
const RemoteContact &other)
{
@@ -100,16 +127,58 @@ StreamTubeServer::RemoteContact &StreamTubeServer::RemoteContact::operator=(
return *this;
}
+/**
+ * \fn bool StreamTubeServer::RemoteContact::isValid() const
+ *
+ * Return whether or not the contact is valid or is just the null object created using the default
+ * constructor.
+ *
+ * \return \c true if valid, \c false otherwise.
+ */
+
+/**
+ * \fn AccountPtr StreamTubeServer::RemoteContact::account() const
+ *
+ * Return the account through which the contact can be reached.
+ *
+ * \return A pointer to the account object.
+ */
+
+/**
+ * \fn ContactPtr StreamTubeServer::RemoteContact::contact() const
+ *
+ * Return the actual contact object.
+ *
+ * \return A pointer to the object.
+ */
+
struct TELEPATHY_QT4_NO_EXPORT StreamTubeServer::Tube::Private : public QSharedData
{
// empty placeholder for now
};
+/**
+ * \class StreamTubeServer::Tube
+ * \ingroup serverclient
+ * \headerfile TelepathyQt4/stream-tube-server.h <TelepathyQt4/StreamTubeServer>
+ *
+ * \brief The StreamTubeServer::Tube class represents a tube being handled by the server.
+ */
+
+/**
+ * Constructs a new invalid Tube instance.
+ */
StreamTubeServer::Tube::Tube()
{
// invalid instance
}
+/**
+ * Constructs a Tube instance for the given tube \a channel from the given \a account.
+ *
+ * \param account A pointer to the account the online connection of which the tube originates from.
+ * \param channel A pointer to the tube channel object.
+ */
StreamTubeServer::Tube::Tube(
const AccountPtr &account,
const OutgoingStreamTubeChannelPtr &channel)
@@ -117,6 +186,9 @@ StreamTubeServer::Tube::Tube(
{
}
+/**
+ * Copy constructor.
+ */
StreamTubeServer::Tube::Tube(
const Tube &other)
: QPair<AccountPtr, OutgoingStreamTubeChannelPtr>(other.account(), other.channel()),
@@ -124,11 +196,17 @@ StreamTubeServer::Tube::Tube(
{
}
+/**
+ * Class destructor.
+ */
StreamTubeServer::Tube::~Tube()
{
// mPriv deleted automatically
}
+/**
+ * Assignment operator.
+ */
StreamTubeServer::Tube &StreamTubeServer::Tube::operator=(
const Tube &other)
{
@@ -143,6 +221,31 @@ StreamTubeServer::Tube &StreamTubeServer::Tube::operator=(
return *this;
}
+/**
+ * \fn bool StreamTubeServer::Tube::isValid() const
+ *
+ * Return whether or not the tube is valid or is just the null object created using the default
+ * constructor.
+ *
+ * \return \c true if valid, \c false otherwise.
+ */
+
+/**
+ * \fn AccountPtr StreamTubeServer::Tube::account() const
+ *
+ * Return the account from which the tube originates.
+ *
+ * \return A pointer to the account object.
+ */
+
+/**
+ * \fn OutgoingStreamTubeChannelPtr StreamTubeServer::Tube::channel() const
+ *
+ * Return the actual tube channel.
+ *
+ * \return A pointer to the channel.
+ */
+
struct StreamTubeServer::Private
{
Private(const ClientRegistrarPtr &registrar,