haiku-dumber/MainWindow.h

47 lines
968 B
C
Raw Normal View History

2024-09-29 17:58:05 -03:00
/*
* Copyright 2024, My Name <my@email.address>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <MenuItem.h>
2024-09-30 03:17:31 -03:00
#include <TextControl.h>
#include <TextView.h>
#include <StatusBar.h>
2024-09-29 17:58:05 -03:00
#include <Window.h>
2024-09-30 03:17:31 -03:00
//From private headers !
//#include "/boot/system/develop/headers/private/netservices2/HttpRequest.h"
//#include "/boot/system/develop/headers/private/netservices2/ErrorsExt.h"
//#include <ErrorsExt.h>
#include <NetServicesDefs.h>
#include <HttpSession.h>
#include <HttpRequest.h>
#include <HttpResult.h>
using namespace BPrivate::Network;
class MainWindow : public BWindow {
2024-09-29 17:58:05 -03:00
public:
2024-09-30 03:17:31 -03:00
MainWindow();
virtual ~MainWindow();
2024-09-29 17:58:05 -03:00
2024-09-30 03:17:31 -03:00
virtual void MessageReceived(BMessage *msg);
2024-09-29 17:58:05 -03:00
2024-09-30 03:17:31 -03:00
void sendQuery();
2024-09-29 17:58:05 -03:00
2024-09-30 03:17:31 -03:00
private:
BMenuBar *_BuildMenu();
BHttpSession _sharedSession;
BTextView * _answerView;
BTextControl* _inputField;
BStatusBar* _progress;
BMenuItem *fSaveMenuItem;
2024-09-29 17:58:05 -03:00
};
#endif