1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#ifndef MENUACCESSOR_H
#define MENUACCESSOR_H
#include <QList>
#include <QVariantHash>
#include <QtPlugin>
class QAction;
class QObject;
class QString;
class MenuAccessor {
public:
virtual ~MenuAccessor() { }
virtual QList<QVariantHash> getAccountMenuParam() = 0;
virtual QList<QVariantHash> getContactMenuParam() = 0;
virtual QAction * getContactAction(QObject *parent, int account, const QString &contact) = 0;
virtual QAction * getAccountAction(QObject *parent, int account) = 0;
};
Q_DECLARE_INTERFACE(MenuAccessor, "org.psi-im.MenuAccessor/0.1");
#endif // MENUACCESSOR_H
|