[Telepathy-commits] [telepathy-qt4/master] Removed PendingReadyConnection in favor of PendingReady.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Mon Mar 2 18:40:08 PST 2009


---
 TelepathyQt4/Client/PendingReadyConnection       |   13 ---
 TelepathyQt4/Client/pending-ready-connection.cpp |  110 ----------------------
 TelepathyQt4/Client/pending-ready-connection.h   |   62 ------------
 TelepathyQt4/Makefile.am                         |    4 -
 4 files changed, 0 insertions(+), 189 deletions(-)
 delete mode 100644 TelepathyQt4/Client/PendingReadyConnection
 delete mode 100644 TelepathyQt4/Client/pending-ready-connection.cpp
 delete mode 100644 TelepathyQt4/Client/pending-ready-connection.h

diff --git a/TelepathyQt4/Client/PendingReadyConnection b/TelepathyQt4/Client/PendingReadyConnection
deleted file mode 100644
index 219d1ed..0000000
--- a/TelepathyQt4/Client/PendingReadyConnection
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef _TelepathyQt4_Client_PendingReadyConnection_HEADER_GUARD_
-#define _TelepathyQt4_Client_PendingReadyConnection_HEADER_GUARD_
-
-#ifndef IN_TELEPATHY_QT4_HEADER
-#define IN_TELEPATHY_QT4_HEADER
-#endif
-
-#include <TelepathyQt4/Client/pending-ready-connection.h>
-
-#undef IN_TELEPATHY_QT4_HEADER
-
-#endif
-// vim:set ft=cpp:
diff --git a/TelepathyQt4/Client/pending-ready-connection.cpp b/TelepathyQt4/Client/pending-ready-connection.cpp
deleted file mode 100644
index 43e9292..0000000
--- a/TelepathyQt4/Client/pending-ready-connection.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * This file is part of TelepathyQt4
- *
- * Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
- * Copyright (C) 2009 Nokia Corporation
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#include <TelepathyQt4/Client/PendingReadyConnection>
-
-#include "TelepathyQt4/Client/_gen/pending-ready-connection.moc.hpp"
-
-#include "TelepathyQt4/debug-internal.h"
-
-#include <QDBusPendingCallWatcher>
-#include <QDBusPendingReply>
-
-/**
- * \addtogroup clientsideproxies Client-side proxies
- *
- * Proxy objects representing remote service objects accessed via D-Bus.
- *
- * In addition to providing direct access to methods, signals and properties
- * exported by the remote objects, some of these proxies offer features like
- * automatic inspection of remote object capabilities, property tracking,
- * backwards compatibility helpers for older services and other utilities.
- */
-
-namespace Telepathy
-{
-namespace Client
-{
-
-struct PendingReadyConnection::Private
-{
-    Private(Connection::Features requestedFeatures, Connection *connection) :
-        requestedFeatures(requestedFeatures),
-        connection(connection)
-    {
-    }
-
-    Connection::Features requestedFeatures;
-    Connection *connection;
-};
-
-/**
- * \class PendingReadyConnection
- * \ingroup clientconnection
- * \headerfile <TelepathyQt4/Client/pending-ready-connection.h> <TelepathyQt4/Client/PendingReadyConnection>
- *
- * Class containing the features requested and the reply to a request
- * for a connection to become ready. Instances of this class cannot be
- * constructed directly; the only way to get one is via Connection::becomeReady().
- */
-
-/**
- * Construct a PendingReadyConnection object.
- *
- * \param connection The Connection that will become ready.
- */
-PendingReadyConnection::PendingReadyConnection(Connection::Features requestedFeatures, Connection *connection)
-    : PendingOperation(connection),
-      mPriv(new Private(requestedFeatures, connection))
-{
-}
-
-/**
- * Class destructor.
- */
-PendingReadyConnection::~PendingReadyConnection()
-{
-    delete mPriv;
-}
-
-/**
- * Return the Connection object through which the request was made.
- *
- * \return Connection object.
- */
-Connection *PendingReadyConnection::connection() const
-{
-    return mPriv->connection;
-}
-
-/**
- * Return the Features that were requested to become ready on the
- * connection.
- *
- * \return Features.
- */
-Connection::Features PendingReadyConnection::requestedFeatures() const
-{
-    return mPriv->requestedFeatures;
-}
-
-} // Telepathy::Client
-} // Telepathy
diff --git a/TelepathyQt4/Client/pending-ready-connection.h b/TelepathyQt4/Client/pending-ready-connection.h
deleted file mode 100644
index 37e92ad..0000000
--- a/TelepathyQt4/Client/pending-ready-connection.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * This file is part of TelepathyQt4
- *
- * Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/>
- * Copyright (C) 2009 Nokia Corporation
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
- */
-
-#ifndef _TelepathyQt4_cli_pending_ready_connection_h_HEADER_GUARD_
-#define _TelepathyQt4_cli_pending_ready_connection_h_HEADER_GUARD_
-
-#ifndef IN_TELEPATHY_QT4_HEADER
-#error IN_TELEPATHY_QT4_HEADER
-#endif
-
-#include <TelepathyQt4/Client/Connection>
-#include <TelepathyQt4/Client/PendingOperation>
-
-class QDBusPendingCallWatcher;
-
-namespace Telepathy
-{
-namespace Client
-{
-
-class PendingReadyConnection : public PendingOperation
-{
-    Q_OBJECT
-
-public:
-    ~PendingReadyConnection();
-
-    Connection *connection() const;
-    Connection::Features requestedFeatures() const;
-
-private:
-    Q_DISABLE_COPY(PendingReadyConnection);
-    PendingReadyConnection(Connection::Features requestedFeatures, Connection *connection);
-
-    struct Private;
-    friend struct Private;
-    friend class Connection;
-    Private *mPriv;
-};
-
-} // Telepathy::Client
-} // Telepathy
-
-#endif
diff --git a/TelepathyQt4/Makefile.am b/TelepathyQt4/Makefile.am
index 5d9023e..ad6cf78 100644
--- a/TelepathyQt4/Makefile.am
+++ b/TelepathyQt4/Makefile.am
@@ -63,7 +63,6 @@ libtelepathy_qt4_la_SOURCES = \
     Client/pending-ready-account.cpp \
     Client/pending-ready-account-manager.cpp \
     Client/pending-ready-channel.cpp \
-    Client/pending-ready-connection.cpp \
     Client/pending-ready-connection-manager.cpp \
     Client/pending-string-list.cpp \
     Client/properties.cpp \
@@ -122,7 +121,6 @@ nodist_libtelepathy_qt4_la_SOURCES = \
     Client/_gen/pending-ready-account.moc.hpp \
     Client/_gen/pending-ready-account-manager.moc.hpp \
     Client/_gen/pending-ready-channel.moc.hpp \
-    Client/_gen/pending-ready-connection.moc.hpp \
     Client/_gen/pending-ready-connection-manager.moc.hpp \
     Client/_gen/pending-string-list.moc.hpp \
     Client/_gen/readiness-helper.moc.hpp \
@@ -171,7 +169,6 @@ tpqt4clientinclude_HEADERS = \
     Client/PendingReadyAccount \
     Client/PendingReadyAccountManager \
     Client/PendingReadyChannel \
-    Client/PendingReadyConnection \
     Client/PendingReadyConnectionManager \
     Client/PendingSuccess \
     Client/PendingStringList \
@@ -243,7 +240,6 @@ tpqt4clientinclude_HEADERS = \
     Client/pending-ready-account.h \
     Client/pending-ready-account-manager.h \
     Client/pending-ready-channel.h \
-    Client/pending-ready-connection.h \
     Client/pending-ready-connection-manager.h \
     Client/pending-string-list.h \
     Client/properties.h \
-- 
1.5.6.5




More information about the telepathy-commits mailing list