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"
|
#include "MidiServerApp.h"
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
//Constructor
|
|
||||||
MidiServerApp::MidiServerApp()
|
MidiServerApp::MidiServerApp()
|
||||||
: BApplication("application/x-vnd.obos-midi-roster")
|
: BApplication(MIDI_SERVER_SIGNATURE)
|
||||||
{
|
{
|
||||||
roster = new BMidiRoster();
|
//roster = new BMidiRoster();
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
//Destructor
|
|
||||||
MidiRosterApp:: ~MidiRosterApp(void)
|
MidiServerApp::~MidiServerApp(void)
|
||||||
{//ToTest
|
{
|
||||||
delete EndPointList;
|
//delete endpoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
@ -36,28 +36,29 @@ void MidiServerApp::AboutRequested()
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
void MidiServerApp::MessageReceived(BMessage *msg)
|
void MidiServerApp::MessageReceived(BMessage* msg)
|
||||||
{//ToDo
|
{
|
||||||
switch (msg->what)
|
switch (msg->what)
|
||||||
{
|
{
|
||||||
default : BApplication::MessageReceived(msg);
|
default: super::MessageReceived(msg); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
int32 MidiServerApp::GetNextFreeID(void)
|
/*int32 MidiServerApp::GetNextFreeID()
|
||||||
{//ToTest
|
{
|
||||||
return NextFreeID++;
|
return nextFreeID++;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
BMidiEndpoint *MidiServerApp::NextEndPoint(int32 *id)
|
/*BMidiEndpoint* MidiServerApp::NextEndPoint(int32* id)
|
||||||
{//ToTest
|
{
|
||||||
int32 item = 0;
|
int32 item = 0;
|
||||||
BMidiEndpoint *endpoint;
|
BMidiEndpoint *endpoint;
|
||||||
while ((endpoint = (BMidiEndpoint*)EndPointList->ItemAt(item)) != NULL)
|
|
||||||
|
while ((endpoint = (BMidiEndpoint*) endpoints->ItemAt(item)) != NULL)
|
||||||
{
|
{
|
||||||
if (endpoint->ID() > *id)
|
if (endpoint->ID() > *id)
|
||||||
{
|
{
|
||||||
@ -67,32 +68,16 @@ BMidiEndpoint *endpoint;
|
|||||||
}
|
}
|
||||||
item++;
|
item++;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
BMidiRoster *MidiServerApp::GetRoster()
|
/*BMidiRoster* MidiServerApp::GetRoster()
|
||||||
{
|
{
|
||||||
return roster;
|
return roster;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
* @file MidiServerApp.h
|
* @file MidiServerApp.h
|
||||||
*
|
*
|
||||||
* @author Matthijs Hollemans
|
* @author Matthijs Hollemans
|
||||||
|
* @author Jerome Leveque
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MIDI_SERVER_APP_H
|
#ifndef MIDI_SERVER_APP_H
|
||||||
@ -9,6 +10,8 @@
|
|||||||
|
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
|
|
||||||
|
#define MIDI_SERVER_SIGNATURE "application/x-vnd.OpenBeOS-midi-server"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The BApplication that drives the midi_server.
|
* The BApplication that drives the midi_server.
|
||||||
*/
|
*/
|
||||||
@ -16,20 +19,23 @@ class MidiServerApp : public BApplication
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiServerApp();
|
MidiServerApp();
|
||||||
|
virtual ~MidiServerApp();
|
||||||
|
|
||||||
virtual void AboutRequested();
|
virtual void AboutRequested();
|
||||||
|
virtual void MessageReceived(BMessage* msg);
|
||||||
|
|
||||||
int32 GetNextFreeID(void);
|
//int32 GetNextFreeID();
|
||||||
BMidiEndpoint *NextEndPoint(int32 *id);
|
//BMidiEndpoint* NextEndPoint(int32* id);
|
||||||
BMidiRoster *GetRoster();
|
//BMidiRoster* GetRoster();
|
||||||
|
|
||||||
void MessageReceived(BMessage *msg);
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BList *EndPointList;
|
|
||||||
int32 NextFreeID;
|
|
||||||
BMidiRoster *roster;
|
|
||||||
|
|
||||||
|
/** Our superclass. */
|
||||||
|
typedef BApplication super;
|
||||||
|
|
||||||
|
//BList* endpoints;
|
||||||
|
//int32 nextFreeID;
|
||||||
|
//BMidiRoster* roster;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MIDI_SERVER_APP_H
|
#endif // MIDI_SERVER_APP_H
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user