Added IService QObject derived class for emiting Qt signals from service objects.
							parent
							
								
									bc77f671ae
								
							
						
					
					
						commit
						3d9e182531
					
				@ -0,0 +1,12 @@
 | 
			
		||||
#include "iservice.h"
 | 
			
		||||
 | 
			
		||||
IService::IService(QObject *parent) : QObject(parent)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
IService::~IService()
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,25 @@
 | 
			
		||||
#ifndef ISERVICE_H
 | 
			
		||||
#define ISERVICE_H
 | 
			
		||||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
#include <QString>
 | 
			
		||||
 | 
			
		||||
#include "core_global.h"
 | 
			
		||||
 | 
			
		||||
class CORESHARED_EXPORT IService : public QObject
 | 
			
		||||
{
 | 
			
		||||
    Q_OBJECT
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    explicit IService(QObject *parent = 0);
 | 
			
		||||
    virtual ~IService();
 | 
			
		||||
 | 
			
		||||
signals:
 | 
			
		||||
    void dbError(QString errMsg);
 | 
			
		||||
    void dataChanged();
 | 
			
		||||
    void permissionDenied();
 | 
			
		||||
 | 
			
		||||
public slots:
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif // ISERVICE_H
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue