File: commandexecutor.h

package info (click to toggle)
psi-plus 1.4.1456-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,188 kB
  • sloc: cpp: 211,254; ansic: 19,786; javascript: 13,687; xml: 4,056; sh: 1,610; makefile: 437; objc: 407; python: 277; ruby: 171
file content (19 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef COMMANDEXECUTOR_H
#define COMMANDEXECUTOR_H

#include <QtPlugin>

/**
 * Generic API for arbitrary inter-plugin communication
 */
class CommandExecutor {
public:
    virtual ~CommandExecutor() { }

    virtual bool execute(int account, const QHash<QString, QVariant> &args, QHash<QString, QVariant> *result = nullptr)
        = 0;
};

Q_DECLARE_INTERFACE(CommandExecutor, "org.psi-im.CommandExecutor/0.1");

#endif // COMMANDEXECUTOR_H