Got rid of the .rsrc file for now, because it
is rather unconvenient to update from the CVS. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1852 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
073b7c62a6
commit
27d7456273
@ -10,18 +10,18 @@
|
||||
#include "MidiServerApp.h"
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//Constructor
|
||||
|
||||
MidiServerApp::MidiServerApp()
|
||||
: BApplication("application/x-vnd.obos-midi-roster")
|
||||
: BApplication(MIDI_SERVER_SIGNATURE)
|
||||
{
|
||||
roster = new BMidiRoster();
|
||||
//roster = new BMidiRoster();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//Destructor
|
||||
MidiRosterApp:: ~MidiRosterApp(void)
|
||||
{//ToTest
|
||||
delete EndPointList;
|
||||
|
||||
MidiServerApp::~MidiServerApp(void)
|
||||
{
|
||||
//delete endpoints;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@ -36,28 +36,29 @@ void MidiServerApp::AboutRequested()
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void MidiServerApp::MessageReceived(BMessage *msg)
|
||||
{//ToDo
|
||||
void MidiServerApp::MessageReceived(BMessage* msg)
|
||||
{
|
||||
switch (msg->what)
|
||||
{
|
||||
default : BApplication::MessageReceived(msg);
|
||||
default: super::MessageReceived(msg); break;
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
int32 MidiServerApp::GetNextFreeID(void)
|
||||
{//ToTest
|
||||
return NextFreeID++;
|
||||
}
|
||||
/*int32 MidiServerApp::GetNextFreeID()
|
||||
{
|
||||
return nextFreeID++;
|
||||
}*/
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
BMidiEndpoint *MidiServerApp::NextEndPoint(int32 *id)
|
||||
{//ToTest
|
||||
int32 item = 0;
|
||||
BMidiEndpoint *endpoint;
|
||||
while ((endpoint = (BMidiEndpoint*)EndPointList->ItemAt(item)) != NULL)
|
||||
/*BMidiEndpoint* MidiServerApp::NextEndPoint(int32* id)
|
||||
{
|
||||
int32 item = 0;
|
||||
BMidiEndpoint *endpoint;
|
||||
|
||||
while ((endpoint = (BMidiEndpoint*) endpoints->ItemAt(item)) != NULL)
|
||||
{
|
||||
if (endpoint->ID() > *id)
|
||||
{
|
||||
@ -67,32 +68,16 @@ BMidiEndpoint *endpoint;
|
||||
}
|
||||
item++;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
return NULL;
|
||||
}*/
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
BMidiRoster *MidiServerApp::GetRoster()
|
||||
/*BMidiRoster* MidiServerApp::GetRoster()
|
||||
{
|
||||
return roster;
|
||||
}
|
||||
}*/
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
int main()
|
||||
|
@ -2,6 +2,7 @@
|
||||
* @file MidiServerApp.h
|
||||
*
|
||||
* @author Matthijs Hollemans
|
||||
* @author Jerome Leveque
|
||||
*/
|
||||
|
||||
#ifndef MIDI_SERVER_APP_H
|
||||
@ -9,6 +10,8 @@
|
||||
|
||||
#include <Application.h>
|
||||
|
||||
#define MIDI_SERVER_SIGNATURE "application/x-vnd.OpenBeOS-midi-server"
|
||||
|
||||
/**
|
||||
* The BApplication that drives the midi_server.
|
||||
*/
|
||||
@ -16,20 +19,23 @@ class MidiServerApp : public BApplication
|
||||
{
|
||||
public:
|
||||
MidiServerApp();
|
||||
virtual ~MidiServerApp();
|
||||
|
||||
virtual void AboutRequested();
|
||||
virtual void MessageReceived(BMessage* msg);
|
||||
|
||||
int32 GetNextFreeID(void);
|
||||
BMidiEndpoint *NextEndPoint(int32 *id);
|
||||
BMidiRoster *GetRoster();
|
||||
|
||||
void MessageReceived(BMessage *msg);
|
||||
|
||||
//int32 GetNextFreeID();
|
||||
//BMidiEndpoint* NextEndPoint(int32* id);
|
||||
//BMidiRoster* GetRoster();
|
||||
|
||||
private:
|
||||
BList *EndPointList;
|
||||
int32 NextFreeID;
|
||||
BMidiRoster *roster;
|
||||
|
||||
|
||||
/** Our superclass. */
|
||||
typedef BApplication super;
|
||||
|
||||
//BList* endpoints;
|
||||
//int32 nextFreeID;
|
||||
//BMidiRoster* roster;
|
||||
};
|
||||
|
||||
#endif // MIDI_SERVER_APP_H
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user