Exemple #1
0
void
TestBindata::list ()
{
	if (XMMS_IPC_PROTOCOL_VERSION < 11) {
		QSKIP("Bindata list not supported on DrK", SkipSingle);
	}
	m_client.bindata.list ()(this, SLOT (cbList (QVariantList)), SLOT(cbFail (QString)));

	waitForAnswer ();
}
MSWidgetResourceMapper::~MSWidgetResourceMapper(void)
{
  ResourceSet::Cursor cursor(resourceSet());
  for (cursor.setToFirst();cursor.isValid();cursor.setToNext())
   {
     MapperItem &item=resourceSet().elementAt(cursor);
     MSUnsignedLongVector &cbList=item.destroyCBList();
     unsigned len=cbList.length();
     for (unsigned i=0;i<len;i++)
      {
        WidgetDestroyCallback *cb=(WidgetDestroyCallback *)cbList(i);
        cb->widget()->removeCallback(MSWidgetCallback::destroy,cb);
      }
   }
}