mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #220, helper methods for empty rooms
This commit is contained in:
@@ -31,5 +31,19 @@ namespace BlackMisc
|
||||
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
|
||||
|
||||
@@ -44,6 +44,8 @@ namespace BlackMisc
|
||||
*/
|
||||
static void registerMetadata();
|
||||
|
||||
//! Frequently needed for voice room resolutions
|
||||
static const CVoiceRoomList &twoEmptyRooms();
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
Reference in New Issue
Block a user