summaryrefslogtreecommitdiff
path: root/test/poi-service/poi-contentaccess-module/mainwindow.h
blob: 8c216c842a97fbb20b13e136fdb946d64378d455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/**
* @licence app begin@
* SPDX-License-Identifier: MPL-2.0
*
* \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen
*
* \file mainwindow.h
*
* \brief This file is part of the poi proof of concept.
*
* \author Philippe Colliot <philippe.colliot@mpsa.com>
*
* \version 1.1
*
* This Source Code Form is subject to the terms of the
* Mozilla Public License (MPL), v. 2.0.
* If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* For further information see http://www.genivi.org/.
*
* List of changes:
* 10-02-2014, Philippe Colliot, refinement and migration to the new repository
* <date>, <name>, <description of change>
*
* @licence end@
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#define noValue "-------"

class contentAccessModuleServer;
class poiContentAccess;


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void ConnectTocontentAccessModuleServer(contentAccessModuleServer *server);

    void ConnectTopoiContentAccessClient(poiContentAccess *client);

    void InitUi();

    void on_SetLanguage(const std::string languageCode, const std::string countryCode);


private slots:
    void on_registerCAM_clicked();

    void on_unregisterCAM_clicked();

    void on_addCAMCategory_clicked();

    void on_removeCAMCategory_clicked();

private:
    void initSettings();

    Ui::MainWindow *ui;
    contentAccessModuleServer* mp_contentAccessModule;
    poiContentAccess* mp_poiContentAccess;
    std::vector<ushort> m_categoriesID;
};

#endif // MAINWINDOW_H