Hobrasoft httpd server
Embedded HTTP server for Qt and C++
hobrasofthttp
example
src
application
application.cpp
Go to the documentation of this file.
1
5
#include "
application.h
"
6
#include "
list.h
"
7
#include "
item.h
"
8
9
using namespace
Example
;
10
11
Application::Application
(QObject *parent) : QObject(parent) {
12
m_list =
new
List
(
this
);
13
list
()->
insert
(
new
Item
(
"A"
,
"Item A"
, 987,
this
) );
14
list
()->
insert
(
new
Item
(
"B"
,
"Item B"
, 1597,
this
) );
15
list
()->
insert
(
new
Item
(
"C"
,
"Item C"
, 2584,
this
) );
16
list
()->
insert
(
new
Item
(
"D"
,
"Item D"
, 4181,
this
) );
17
}
18
19
20
List
*
Application::list
()
const
{
21
return
m_list;
22
}
application.h
Example::List
List of all items.
Definition:
list.h:19
Example
Namespace for Example.
Definition:
application.h:11
Example::Application::Application
Application(QObject *)
Constructor - makes the list and add some items to it.
Definition:
application.cpp:11
list.h
Example::Application::list
List * list() const
Returns pointer to list of all items.
Definition:
application.cpp:20
item.h
Example::Item
One data item in the example.
Definition:
item.h:20
Example::List::insert
void insert(Item *)
Insert one item to the list.
Definition:
list.cpp:26
Generated on Tue Dec 11 2018 11:15:48 for Hobrasoft httpd server by
1.8.14