用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
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.
 
 
 
 
 
 

34 lines
893 B

/****************************************************************************
**
** 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