Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------------------------------------------------------------
- @file: telepathy-tube-job.h
- /*
- * Copyright (C) 2010 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
- *
- * 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 TELEPATHY_TUBE_JOB_H
- #define TELEPATHY_TUBE_JOB_H
- #include "telepathy-base-job.h"
- class TelepathyTubeJobPrivate;
- class TelepathyTubeJob : public TelepathyBaseJob
- {
- Q_OBJECT
- Q_DISABLE_COPY(TelepathyTubeJob)
- Q_DECLARE_PRIVATE(TelepathyTubeJob)
- protected:
- explicit TelepathyTubeJob(TelepathyTubeJobPrivate &dd, QObject *parent = 0);
- virtual ~TelepathyTubeJob();
- TelepathyTubeJobPrivate * const d_ptr;
- Q_SIGNALS:
- void telepathyTubeChannelCreated();
- void telepathyTubeChannelInvalidated();
- void telepathyTubeChannelReady();
- void telepathyTubeChannelNewRemoteConnection();
- };
- #endif // TELEPATHY_TUBE_JOB_H
- --------------------------------------------------------------------------------
- @file: streamtube-job.h
- /*
- * Copyright (C) 2010 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
- *
- * 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 STREAMTUBE_JOB_H
- #define STREAMTUBE_JOB_H
- #include "telepathy-tube-job.h"
- class QIODevice;
- class StreamTubeJobPrivate;
- class StreamTubeJob : public TelepathyTubeJob
- {
- Q_OBJECT
- Q_DISABLE_COPY(StreamTubeJob)
- Q_DECLARE_PRIVATE(StreamTubeJob)
- protected:
- explicit StreamTubeJob(StreamTubeJobPrivate &dd, QObject *parent = 0);
- virtual ~StreamTubeJob();
- StreamTubeJobPrivate * const d_ptr;
- public:
- QIODevice* device();
- };
- #endif // STREAMTUBE_JOB_H
- --------------------------------------------------------------------------------
- @file: tcp-streamtube-job.h
- /*
- * Copyright (C) 2010 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
- *
- * 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 TCP_STREAMTUBE_JOB_H
- #define TCP_STREAMTUBE_JOB_H
- #include "streamtube-job.h"
- class QTcpSocket;
- namespace Nepomuk {
- class PersonContact;
- class Person;
- }
- class TcpStreamTubeJobPrivate;
- class TcpStreamTubeJob : public StreamTubeJob
- {
- Q_OBJECT
- Q_DISABLE_COPY(TcpStreamTubeJob)
- Q_DECLARE_PRIVATE(TcpStreamTubeJob)
- protected:
- explicit TcpStreamTubeJob(StreamTubeJobPrivate &dd, QObject *parent = 0);
- virtual ~TcpStreamTubeJob();
- TcpStreamTubeJobPrivate * const d_ptr;
- public:
- QTcpSocket* socket();
- };
- #endif // TCP_STREAMTUBE_JOB_H
- --------------------------------------------------------------------------------
- @file: offer-tcp-streamtube-job.h
- /*
- * Copyright (C) 2010 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
- *
- * 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 OFFER_TCP_STREAMTUBE_JOB_H
- #define OFFER_TCP_STREAMTUBE_JOB_H
- #include "tcp-streamtube-job.h"
- namespace Nepomuk {
- class PersonContact;
- class Person;
- }
- class QTcpServer;
- class QHostAddress;
- class QVariantMap;
- class OfferStreamTubeJobPrivate;
- class OfferStreamTubeJob : public TcpStreamTubeJob
- {
- Q_OBJECT
- Q_DISABLE_COPY(OfferStreamTubeJob)
- Q_DECLARE_PRIVATE(OfferStreamTubeJob)
- enum ProcessingMode {
- OfferTcpStreamTubeContactMode,
- OfferTcpStreamTubeMetaContactMode,
- OfferTcpStreamTubeHostAddressMode,
- OfferTcpStreamTubeTcpServerMode
- };
- // Our Q_PRIVATE_SLOTS who perform the real job
- Q_PRIVATE_SLOT(d_func(), void __k__offerTcpStreamTubeContact())
- Q_PRIVATE_SLOT(d_func(), void __k__offerTcpStreamTubeMetaContact())
- Q_PRIVATE_SLOT(d_func(), void __k__offerTcpStreamTubeHostAddress())
- Q_PRIVATE_SLOT(d_func(), void __k__offerTcpStreamTubeTcpServer())
- public:
- OfferTcpStreamTubeJob(const Nepomuk::PersonContact &contact, QObject *parent = 0);
- OfferTcpStreamTubeJob(const Nepomuk::Person &contact, QObject *parent = 0);
- OfferTcpStreamTubeJob(const QHostAddress &address, quint16 port, const QVariantMap ¶meters, QObject *parent = 0);
- OfferTcpStreamTubeJob(QTcpServer *server, const QVariantMap ¶meters, QObject *parent = 0);
- virtual ~OfferTcpStreamTubeJob();
- virtual void start();
- QTcpServer* tcpServer();
- };
- #endif // OFFER_TCP_STREAMTUBE_JOB_H
- --------------------------------------------------------------------------------
- @file: local-streamtube-job.h
- /*
- * Copyright (C) 2010 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
- *
- * 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 LOCAL_STREAMTUBE_JOB_H
- #define LOCAL_STREAMTUBE_JOB_H
- #include "streamtube-job.h"
- class QLocalSocket;
- namespace Nepomuk {
- class PersonContact;
- class Person;
- }
- class LocalStreamTubeJobPrivate;
- class LocalStreamTubeJob : public StreamTubeJob
- {
- Q_OBJECT
- Q_DISABLE_COPY(LocalStreamTubeJob)
- Q_DECLARE_PRIVATE(LocalStreamTubeJob)
- protected:
- explicit LocalStreamTubeJob(StreamTubeJobPrivate &dd, QObject *parent = 0);
- virtual ~LocalStreamTubeJob();
- LocalStreamTubeJobPrivate * const d_ptr;
- public:
- QLocalSocket* localSocket();
- };
- #endif // LOCAL_STREAMTUBE_JOB_H
- --------------------------------------------------------------------------------
- @file: offer-local-streamtube-job.h
- /*
- * Copyright (C) 2010 Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
- *
- * 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 OFFER_LOCAL_STREAMTUBE_JOB_H
- #define OFFER_LOCAL_STREAMTUBE_JOB_H
- #include "local-streamtube-job.h"
- namespace Nepomuk {
- class PersonContact;
- class Person;
- }
- class QLocalServer;
- //class QByteArray;
- //class QVariantMap;
- class OfferStreamTubeJobPrivate;
- class OfferStreamTubeJob : public LocalStreamTubeJob
- {
- Q_OBJECT
- Q_DISABLE_COPY(OfferStreamTubeJob)
- Q_DECLARE_PRIVATE(OfferStreamTubeJob)
- enum ProcessingMode {
- OfferLocalStreamTubeContactMode,
- OfferLocalStreamTubeMetaContactMode,
- OfferLocalStreamTubeSocketAddressMode,
- OfferLocalStreamTubeLocalServerMode
- };
- // Our Q_PRIVATE_SLOTS who perform the real job
- Q_PRIVATE_SLOT(d_func(), void __k__offerLocalStreamTubeContact())
- Q_PRIVATE_SLOT(d_func(), void __k__offerLocalStreamTubeMetaContact())
- Q_PRIVATE_SLOT(d_func(), void __k__offerLocalStreamTubeSocketAddress())
- Q_PRIVATE_SLOT(d_func(), void __k__offerLocalStreamTubeLocalServer())
- public:
- OfferLocalStreamTubeJob(const Nepomuk::PersonContact &contact, QObject *parent = 0);
- OfferLocalStreamTubeJob(const Nepomuk::Person &contact, QObject *parent = 0);
- OfferLocalStreamTubeJob(const QByteArray &socketAddress, const QVariantMap ¶meters, bool requireCredentials = false, QObject *parent = 0);
- OfferLocalStreamTubeJob(QLocalServer *server, const QVariantMap ¶meters, bool requireCredentials = false, QObject *parent = 0);
- virtual ~OfferLocalStreamTubeJob();
- virtual void start();
- QLocalServer* localServer();
- };
- #endif // OFFER_LOCAL_STREAMTUBE_JOB_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement