MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9
   Home · All Classes · All Namespaces · Modules · Functions · Files

protocols/cm-wrapper.h

#ifndef _TelepathyQt4_examples_protocols_cm_wrapper_h_HEADER_GUARD_
#define _TelepathyQt4_examples_protocols_cm_wrapper_h_HEADER_GUARD_

#include <TelepathyQt4/Types>

#include <QObject>
#include <QString>

using namespace Tp;

namespace Tp
{
class ConnectionManager;
class PendingOperation;
}

class CMWrapper : public QObject
{
    Q_OBJECT

public:
   CMWrapper(const QString &cmName, QObject *parent = 0);
   ~CMWrapper();

   ConnectionManagerPtr cm() const;

Q_SIGNALS:
   void finished();

private Q_SLOTS:
    void onCMReady(Tp::PendingOperation *op);

private:
    ConnectionManagerPtr mCM;
};

#endif

Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.6.5