Public feed
#887952
// Here we avoid loading the header multiple times
#ifndef PLASMASMSSENDER_H
#define PLASMASMSSENDER_H
// We need the Plasma Applet headers
#include <KIcon>
#include <QProcess>
#include <Plasma/Applet>
#include <Plasma/Svg>
#include <plasma/widgets/lineedit.h>
#include <plasma/widgets/pushbutton.h>
#include <plasma/widgets/label.h>
#include <KDialog>
#include "ui_smsConfig.h"
class KDialog;
class QSizeF;
// Define our plasma Applet
class Sms : public Plasma::Applet
{
Q_OBJECT
public:
// Basic Create/Destroy
Sms(QObject *parent, const QVariantList &args);
~Sms();
// The paintInterface procedure paints the applet to screen
void paintInterface(QPainter *painter,
const QStyleOptionGraphicsItem *option,
const QRect& contentsRect);
void init();
private Q_SLOTS:
void showConfigurationInterface(void);
void slotSendClicked();
void slotSendSmsProcessFinished(int, QProcess::ExitStatus);
void slotSendSmsProcessStarted();
protected slots:
void configAccepted();
private:
Plasma::Svg m_svg;
KIcon m_icon;
Plasma::LineEdit *m_numberEdit;
Plasma::LineEdit *m_messageEdit;
Plasma::PushButton *m_sendButton;
Plasma::Label *m_statusLabel;
//config stuff
QString m_scriptPath;
QString m_scriptArgs;
KDialog *m_configDialog;
Ui::smsConfig ui;
};
// This is the command that links your applet to the .desktop file
K_EXPORT_PLASMA_APPLET(smsSender, Sms)
#endif