You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
893 B
35 lines
893 B
3 months ago
|
/****************************************************************************
|
||
|
**
|
||
|
** Copyright (C) 2013 Jeffrey Lee.
|
||
|
** All rights reserved.
|
||
|
** Contact: vipjeffreylee@gmail.com
|
||
|
** Please keep the author contact information.
|
||
|
** 2013-10-10
|
||
|
**
|
||
|
****************************************************************************/
|
||
|
#ifndef ROBOT_H
|
||
|
#define ROBOT_H
|
||
|
#include <QObject>
|
||
|
#include <QtPlugin>
|
||
|
#include<QStringList>
|
||
|
#include "robotinterface.h"
|
||
|
class Robot : public QObject, RobotInterface
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
Q_PLUGIN_METADATA(IID RobotInterface_iid)
|
||
|
Q_INTERFACES(RobotInterface)
|
||
|
public:
|
||
|
Robot();
|
||
|
~Robot();
|
||
|
QString name();
|
||
|
ReplyMsg listenandsay(const MsgSender msgSender, const QString &message);
|
||
|
private:
|
||
|
// QStringList joke;
|
||
|
QStringList jokelist;
|
||
|
bool loaddb();
|
||
|
void closedb();
|
||
|
bool savejoke(QString joke,QString creator);
|
||
|
};
|
||
|
|
||
|
#endif // ROBOT_H
|