4 #include "message/Message.h"
5 #include "util/Hashtable.h"
6 #include "util/String.h"
51 String
GetPeerNickname(
const ZGPeerID & pid,
const ConstMessageRef & optPeerInfo);
107 void UpdateNoteHistogram(uint64 chordVal,
bool isAdd, Hashtable<uint8, uint32> & histogram, uint64 & bitchord);
An interface for an object that represents the full contents of a ZG database.
void SetReviewResults(uint64 allNotesUsedChord)
Convenience method; calls SetReviewResults(allNotesUsedChord) on our ChoirSession object...
A slight specialization of the IDatabaseObject class, just so I can add some application-specific hel...
void UpdateNoteHistogram(uint64 chordVal, bool isAdd, Hashtable< uint8, uint32 > &histogram, uint64 &bitchord)
MusicDatabaseObject()
Default constructor.
ChoirSession * GetChoirSession()
Returns a pointer to the ChoirSession object that created this object.
void SendMessageToGUI(const ConstMessageRef &msg, bool allowReviewTrigger)
Sends the specified Message to the GUI thread.
const char * GetNoteName(uint32 noteIdx)
Given a CHOIR_NOTE_* value, returns a human-readable description of the note (e.g.
ConstMessageRef SendFullStateToGUI(bool allowReviewTrigger)
Saves the state of this object into a Message and sends that Message to the GUI thread.
The choir namespace contains the code specific to the ZGChoir demonstration application.
String GetPeerNickname(const ZGPeerID &pid, const ConstMessageRef &optPeerInfo)
Given a peer's ID and his optional info, returns a human-readable ID string for him.
This is the class that that the Choir demo uses to implement its data-replication functionality...