added replicant test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9446 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
SubDir OBOS_TOP src tests servers input ;
|
SubDir OBOS_TOP src tests servers input ;
|
||||||
|
|
||||||
SubInclude OBOS_TOP src tests servers input comm ;
|
SubInclude OBOS_TOP src tests servers input comm ;
|
||||||
|
SubInclude OBOS_TOP src tests servers input inputdevice ;
|
||||||
SubInclude OBOS_TOP src tests servers input msgspy ;
|
SubInclude OBOS_TOP src tests servers input msgspy ;
|
||||||
SubInclude OBOS_TOP src tests servers input portspy ;
|
SubInclude OBOS_TOP src tests servers input portspy ;
|
||||||
SubInclude OBOS_TOP src tests servers input prefs ;
|
SubInclude OBOS_TOP src tests servers input prefs ;
|
||||||
|
SubInclude OBOS_TOP src tests servers input replicant ;
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
SubDir OBOS_TOP src tests servers input replicant ;
|
||||||
|
|
||||||
|
UseHeaders [ FDirName $(OBOS_TOP) src servers input ] ;
|
||||||
|
UsePrivateHeaders input ;
|
||||||
|
AddResources ReplicantTest : replicant.rdef ;
|
||||||
|
|
||||||
|
if $(COMPILE_FOR_R5) {
|
||||||
|
SubDirC++Flags -DCOMPILE_FOR_R5 ;
|
||||||
|
}
|
||||||
|
|
||||||
|
SimpleTest ReplicantTest :
|
||||||
|
MethodReplicant.cpp
|
||||||
|
MethodMenuItem.cpp
|
||||||
|
main.cpp
|
||||||
|
: be tracker ;
|
||||||
|
|
||||||
|
SEARCH on [ FGristFiles
|
||||||
|
MethodReplicant.cpp
|
||||||
|
MethodMenuItem.cpp
|
||||||
|
]
|
||||||
|
= [ FDirName $(OBOS_TOP) src servers input ] ;
|
||||||
|
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||||
|
//
|
||||||
|
// Copyright (c) 2004, OpenBeOS
|
||||||
|
//
|
||||||
|
// This software is part of the OpenBeOS distribution and is covered
|
||||||
|
// by the OpenBeOS license.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// Program: desklink
|
||||||
|
// Author: Jérôme DUVAL
|
||||||
|
// Description: MethodReplicant Test
|
||||||
|
// Created : October 20, 2004
|
||||||
|
//
|
||||||
|
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||||
|
|
||||||
|
#include <Application.h>
|
||||||
|
#include <Deskbar.h>
|
||||||
|
#include <Roster.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "MethodReplicant.h"
|
||||||
|
|
||||||
|
const char *app_signature = "application/x-vnd.obos.testmethodreplicant";
|
||||||
|
// the application signature used by the replicant to find the supporting
|
||||||
|
// code
|
||||||
|
|
||||||
|
extern "C" _EXPORT BView* instantiate_deskbar_item();
|
||||||
|
|
||||||
|
BView *
|
||||||
|
instantiate_deskbar_item()
|
||||||
|
{
|
||||||
|
return new MethodReplicant(app_signature);
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
BApplication app(app_signature);
|
||||||
|
|
||||||
|
app_info info;
|
||||||
|
app.GetAppInfo(&info);
|
||||||
|
|
||||||
|
status_t err = BDeskbar().AddItem(&info.ref);
|
||||||
|
|
||||||
|
if(err!=B_OK) {
|
||||||
|
printf("desklink: Deskbar refuses link\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
resource(1, "BEOS:APP_FLAGS") #'APPF' $"0D000000";
|
||||||
|
|
||||||
|
resource(1, "BEOS:APP_VERSION") #'APPV' array
|
||||||
|
{
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000000000000000000000000000000000000000000000000000"
|
||||||
|
$"0000000000000000"
|
||||||
|
};
|
||||||
|
|
||||||
|
resource(1, "BEOS:APP_SIG") #'MIMS' "application/x-vnd.obos.testmethodreplicant";
|
||||||
|
|
||||||
|
resource(2, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-elfexecutable";
|
||||||
|
|
||||||
|
resource(1, "BEOS:FILE_TYPES") message;
|
||||||
Reference in New Issue
Block a user