2 * Copyright 2012-2017, Adrien Destugues, pulkomandy@gmail.com
3 * Distributed under the terms of the MIT licence.
11 #include <Application.h>
12 #include <PropertyInfo.h>
13 #include <SerialPort.h>
16 #include "FileSender.h"
24 class SerialApp
: public BApplication
30 void MessageReceived(BMessage
* message
);
33 status_t
GetSupportedSuites(BMessage
* message
);
34 BHandler
* ResolveSpecifier(BMessage
*, int32
, BMessage
*, int32
,
37 const BString
& GetPort();
44 BSerialPort fSerialPort
;
46 SerialWindow
* fWindow
;
50 FileSender
* fFileSender
;
52 static status_t
PollSerial(void*);
54 static const BPropertyInfo kScriptingProperties
;
55 static const char* kApplicationSignature
;
59 enum messageConstants
{
60 kMsgCustomBaudrate
= 'cust',
61 kMsgDataRead
= 'dard',
62 kMsgDataWrite
= 'dawr',
64 kMsgOpenPort
= 'open',
65 kMsgProgress
= 'prog',
66 kMsgSettings
= 'stty',
67 kMsgSendFile
= 'sndf',