34 lines
643 B
C++
34 lines
643 B
C++
#ifndef VOCASTI_MAIN_H_
|
|
#define VOCASTI_MAIN_H_
|
|
|
|
#include <QXmppQt6/QXmppCallManager.h>
|
|
#include <QXmppQt6/QXmppClient.h>
|
|
#include <QObject>
|
|
#include <QTimer>
|
|
|
|
class VocaXmppClient : public QXmppClient
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
VocaXmppClient(QObject *parent = nullptr);
|
|
~VocaXmppClient() override;
|
|
|
|
private slots:
|
|
void messageReceived(const QXmppMessage &);
|
|
void callConnected();
|
|
void callReceived(QXmppCall *call);
|
|
void callStarted(QXmppCall *call);
|
|
void callFinished();
|
|
|
|
protected:
|
|
int setupPipe();
|
|
|
|
QXmppCall *m_call;
|
|
QXmppCallManager m_callManager;
|
|
QTimer m_timer;
|
|
|
|
};
|
|
|
|
#endif // VOCASTI_MAIN_H_
|