+ pResourceSet_ = new ResourcePolicy::ResourceSet("gaming",this);
+ ResourcePolicy::VibraResource * pVibraResource = new ResourcePolicy::VibraResource();
+ pVibraResource->setOptional(false); //The only resource of the set, so no sense for it to be optional
+ pResourceSet_->addResourceObject(pVibraResource);
+
+ connect(pResourceSet_,SIGNAL(resourcesGranted(const QList< ResourcePolicy::ResourceType >)),this,SLOT(resourcesAvailable()));
+ connect(pResourceSet_,SIGNAL(lostResources()),this,SLOT(resourcesLost()));
+
+ //To test whether resources were succesfully asked but not given
+ connect(pResourceSet_,SIGNAL(resourcesDenied()),this,SLOT(resourcesLost()));
+ pResourceSet_->setAlwaysReply();
+
+ pResourceSet_->acquire();