mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
- Add feedback on errors - More generic import requests - Replace storing password by a native popup that ask passwork when needed - Store passwords in settings file - Import Feedback in advanced settings tab - Use English as default translator if no translations are found - Add OpenSSL packaging for Windows to deal with Qt connections - Add option to overwrite plugin if exists - Plugin load/unload managment. Hot-Dynamic load of plugins. Safely test the loaded plugin - Set plugin data with default value when all GUI items are loaded - Rewrite folder priority - Add filename info from pluginloader - Add plugin versionning - Specify inputs for saving - Copy desktop headers in OUTPUT to be used by external projects - Add a plugins folder auto-managed by cmake - Remove obsolete contact api submodule - Clean plugin example - Add specific behaviour for plugin type : inputs have been splitted by Capability. - Update save/load to be more generic and add clean function for configurations - Instantiate Importer List model - Add IDE integration for plugins - Set input fields to be dependent of capability - Change signals interface to take account capability
40 lines
1 KiB
C++
40 lines
1 KiB
C++
#ifndef LINPHONE_APP_NETWORK_HELPER_H
|
|
#define LINPHONE_APP_NETWORK_HELPER_H
|
|
|
|
#include <QObject>
|
|
#include <QtNetwork>
|
|
// This class is used to define network operation to retrieve Addresses from Network
|
|
|
|
|
|
#ifdef ENABLE_APP_EXPORT_PLUGIN
|
|
#include "include/LinphoneApp/LinphonePlugin.hpp"
|
|
#else
|
|
#include <LinphoneApp/LinphonePlugin.hpp>
|
|
#endif
|
|
|
|
class LINPHONEAPP_DLL_API PluginNetworkHelper : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
PluginNetworkHelper();
|
|
virtual ~PluginNetworkHelper();
|
|
virtual QString prepareRequest()const=0; // Called when requesting an Url.
|
|
|
|
void request();
|
|
|
|
QPointer<QNetworkReply> mNetworkReply;
|
|
QNetworkAccessManager mManager;
|
|
signals:
|
|
void requestFinished(const QByteArray &data); // The request is over and have data
|
|
void message(const QtMsgType &type, const QString &message);
|
|
|
|
private:
|
|
void handleReadyData();
|
|
void handleFinished ();
|
|
void handleError (QNetworkReply::NetworkError code);
|
|
void handleSslErrors (const QList<QSslError> &sslErrors);
|
|
|
|
QByteArray mBuffer;
|
|
};
|
|
|
|
#endif // LINPHONE_APP_NETWORK_HELPER_H
|