Added the beginnings of the midi_server

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit 2002-10-30 15:37:29 +00:00
parent 24a8c5cfe1
commit 37192de9c0
5 changed files with 65 additions and 0 deletions

View File

@ -4,6 +4,7 @@ SubInclude OBOS_TOP src servers app ;
SubInclude OBOS_TOP src servers input ;
SubInclude OBOS_TOP src servers media ;
SubInclude OBOS_TOP src servers media_addon ;
SubInclude OBOS_TOP src servers midi ;
SubInclude OBOS_TOP src servers print ;
SubInclude OBOS_TOP src servers registrar ;
SubInclude OBOS_TOP src servers screensaver ;

12
src/servers/midi/Jamfile Normal file
View File

@ -0,0 +1,12 @@
SubDir OBOS_TOP src servers midi ;
UsePrivateHeaders midi ;
AddResources midi_server :
midi_server.rsrc ;
Server midi_server :
MidiServerApp.cpp ;
LinkSharedOSLibs midi_server : be root ;

View File

@ -0,0 +1,34 @@
#include <Alert.h>
#include "MidiServerApp.h"
//------------------------------------------------------------------------------
MidiServerApp::MidiServerApp()
: BApplication("application/x-vnd.be-midi-roster")
{
// Do nothing.
}
//------------------------------------------------------------------------------
void MidiServerApp::AboutRequested()
{
(new BAlert(0,
"-write something funny here-",
"Okay", 0, 0, B_WIDTH_AS_USUAL,
B_INFO_ALERT))->Go();
}
//------------------------------------------------------------------------------
int main()
{
MidiServerApp app;
app.Run();
return 0;
}
//------------------------------------------------------------------------------

View File

@ -0,0 +1,18 @@
#ifndef MIDI_SERVER_APP_H
#define MIDI_SERVER_APP_H
#include <Application.h>
/**
* The BApplication that drives the midi_server.
*/
class MidiServerApp : public BApplication
{
public:
MidiServerApp();
virtual void AboutRequested();
};
#endif // MIDI_SERVER_APP_H

Binary file not shown.