X-Git-Url: http://git.maemo.org/git/?p=vicar;a=blobdiff_plain;f=src%2Fvicar-telepathy%2Fsrc%2Fconnectionmanager.h;fp=src%2Fvicar-telepathy%2Fsrc%2Fconnectionmanager.h;h=bdb5049323f43fb1d0879c6847ac2daf0fb414f3;hp=0000000000000000000000000000000000000000;hb=11d5c26f3a622a0fc32f9cb89e1658846201af4d;hpb=40b1207a3eb33b54e8ac780cabd4a68f7931f248 diff --git a/src/vicar-telepathy/src/connectionmanager.h b/src/vicar-telepathy/src/connectionmanager.h new file mode 100644 index 0000000..bdb5049 --- /dev/null +++ b/src/vicar-telepathy/src/connectionmanager.h @@ -0,0 +1,75 @@ +/* +@version: 0.5 +@author: Sudheer K. +@license: GNU General Public License + +Based on Telepathy-SNOM with copyright notice below. +*/ + +/* + * Telepathy SNOM VoIP phone connection manager + * Copyright (C) 2006 by basyskom GmbH + * @author Tobias Hunger + * + * This library is free software; you can redisQObject::tribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1 as published by the Free Software Foundation. + * + * This library is disQObject::tributed 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 SQObject::treet, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _VICAR_CONNECTIONMANAGER_H_ +#define _VICAR_CONNECTIONMANAGER_H_ + +#include "connectionmanagertypes.h" +#include +#include + +class ConnectionManagerPrivate; + +class ConnectionManager : public QObject +{ + Q_OBJECT + Q_DECLARE_PRIVATE(ConnectionManager) + +public: + explicit ConnectionManager(QObject * parent = 0); + ~ConnectionManager(); + + enum ParamFlags + { + None = 0, + Required = 1, + Register = 2, + hasDefault = 4 + }; + +public slots: + org::freedesktop::Telepathy::ParameterDefinitionList + GetParameters(const QString &proto); + + QStringList ListProtocols(); + + QString RequestConnection(const QString &proto, QVariantMap parameters, + QDBusObjectPath &object_path); + +signals: + void NewConnection(const QString &bus_name, + const QDBusObjectPath &object_path, + const QString &proto); + +private: + ConnectionManager(const ConnectionManager &); // no impl. + + ConnectionManagerPrivate * const d; +}; + +#endif