VocaSTI/main.h

34 lines
643 B
C
Raw Normal View History

2024-08-06 22:25:48 -07:00
#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_