2 * Copyright (C) ARM Limited 2010-2014. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
9 #ifndef __STREAMLINE_SETUP_H__
10 #define __STREAMLINE_SETUP_H__
17 // Commands from Streamline
19 COMMAND_REQUEST_XML = 0,
20 COMMAND_DELIVER_XML = 1,
21 COMMAND_APC_START = 2,
23 COMMAND_DISCONNECT = 4,
27 class StreamlineSetup {
29 StreamlineSetup(OlySocket *socket);
34 char* readCommand(int*);
35 void handleRequest(char* xml);
36 void handleDeliver(char* xml);
37 void sendData(const char* data, uint32_t length, char type);
38 void sendString(const char* string, int type) {sendData(string, strlen(string), type);}
40 void sendConfiguration();
43 void writeConfiguration(char* xml);
45 // Intentionally unimplemented
46 StreamlineSetup(const StreamlineSetup &);
47 StreamlineSetup &operator=(const StreamlineSetup &);
50 #endif //__STREAMLINE_SETUP_H__