mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #220, helper methods for empty rooms
This commit is contained in:
@@ -31,5 +31,19 @@ namespace BlackMisc
|
|||||||
qDBusRegisterMetaType<CVoiceRoomList>();
|
qDBusRegisterMetaType<CVoiceRoomList>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Two empty rooms
|
||||||
|
*/
|
||||||
|
const CVoiceRoomList &CVoiceRoomList::twoEmptyRooms()
|
||||||
|
{
|
||||||
|
static CVoiceRoomList emptyRooms;
|
||||||
|
if (emptyRooms.isEmpty())
|
||||||
|
{
|
||||||
|
emptyRooms.push_back(CVoiceRoom());
|
||||||
|
emptyRooms.push_back(CVoiceRoom());
|
||||||
|
}
|
||||||
|
return emptyRooms;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ namespace BlackMisc
|
|||||||
*/
|
*/
|
||||||
static void registerMetadata();
|
static void registerMetadata();
|
||||||
|
|
||||||
|
//! Frequently needed for voice room resolutions
|
||||||
|
static const CVoiceRoomList &twoEmptyRooms();
|
||||||
};
|
};
|
||||||
|
|
||||||
} //namespace
|
} //namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user