summaryrefslogtreecommitdiff
path: root/libresourceqt
diff options
context:
space:
mode:
Diffstat (limited to 'libresourceqt')
-rw-r--r--libresourceqt/include/qt4/policy/resource-set.h12
-rw-r--r--libresourceqt/src/resource-set.cpp5
2 files changed, 15 insertions, 2 deletions
diff --git a/libresourceqt/include/qt4/policy/resource-set.h b/libresourceqt/include/qt4/policy/resource-set.h
index 2ce18c4..3d18ac6 100644
--- a/libresourceqt/include/qt4/policy/resource-set.h
+++ b/libresourceqt/include/qt4/policy/resource-set.h
@@ -85,8 +85,16 @@ public:
* \param alwaysReply Set this to true to always get a reply from the
* Resource Manager. This optional parameter defaults to false.
*/
- ResourceSet(const QString &applicationClass, QObject *parent = NULL,
- bool alwaysReply = false, bool autoRelease = false);
+ ResourceSet(const QString &applicationClass, QObject *parent,
+ bool alwaysReply, bool autoRelease);
+ /**
+ * Alternative backwards-compatible constructor.
+ * \param applicationClass This parameter defines the application class.
+ * The application class is used to determine the priority order of the
+ * application.
+ * \param parent The optional parent of of this class.
+ */
+ ResourceSet(const QString &applicationClass, QObject *parent = NULL);
/**
* The destructor
*/
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index f5faade..55b09f4 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -15,6 +15,11 @@ ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent,
memset(resourceSet, 0, sizeof(QPointer<Resource *>)*NumberOfTypes);
}
+ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent)
+{
+ ResourceSet(applicationClass, parent, false, false);
+}
+
ResourceSet::~ResourceSet()
{
qDebug("ResourceSet::%s(%d)", __FUNCTION__, identifier);