2010-06-19 15:28:26 +00:00
|
|
|
#ifndef SHAREKEY_H
|
|
|
|
#define SHAREKEY_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include "ui_ShareKey.h"
|
|
|
|
|
2011-08-29 21:20:48 +00:00
|
|
|
#define CHANNEL_KEY_SHARE 0x00000001
|
|
|
|
#define FORUM_KEY_SHARE 0x00000002
|
2010-06-19 15:28:26 +00:00
|
|
|
|
2012-01-27 00:32:17 +00:00
|
|
|
class ShareKey : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2010-06-19 15:28:26 +00:00
|
|
|
|
2012-01-27 00:32:17 +00:00
|
|
|
public:
|
|
|
|
/*
|
|
|
|
*@param chanId The channel id to send request for
|
|
|
|
*/
|
2012-11-06 23:26:47 +00:00
|
|
|
ShareKey(QWidget *parent = 0, std::string grpId = "", int grpType = 0);
|
2012-01-27 00:32:17 +00:00
|
|
|
~ShareKey();
|
2010-06-19 15:28:26 +00:00
|
|
|
|
|
|
|
protected:
|
2012-01-27 00:32:17 +00:00
|
|
|
void changeEvent(QEvent *e);
|
2010-06-19 15:28:26 +00:00
|
|
|
|
|
|
|
private slots:
|
2012-01-27 00:32:17 +00:00
|
|
|
void shareKey();
|
2010-06-19 15:28:26 +00:00
|
|
|
|
2012-01-27 00:32:17 +00:00
|
|
|
private:
|
|
|
|
std::string mGrpId;
|
|
|
|
int mGrpType;
|
2010-06-19 15:28:26 +00:00
|
|
|
|
2012-01-27 00:32:17 +00:00
|
|
|
Ui::ShareKey *ui;
|
2010-06-19 15:28:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SHAREKEY_H
|