summaryrefslogtreecommitdiff
path: root/src/freetextsearch-service/FreeTextSearchStubImpl.hpp
blob: 2f793dd0b31b3bbc4a2be6fcf18d6f85b30388aa (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
/**
* @licence app begin@
* SPDX-License-Identifier: MPL-2.0
*
* \copyright Copyright (C) 2015, 2016 TomTom International B.V.
* \copyright Copyright (C) 2016, PCA Peugeot Citroen
* \author Peter Goedegebure (Peter.Goedegebure@tomtom.com)
* \author Philippe Colliot <philippe.colliot@mpsa.com>
* 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:
* <date>, <name>, <description of change>
*
* @licence end@
*/
#ifndef FREETEXTSEARCHSTUBIMPL_H_
#define FREETEXTSEARCHSTUBIMPL_H_

#include <CommonAPI/CommonAPI.hpp>
#include <org/genivi/CommonTypes.hpp>
#include <org/genivi/navigation/NavigationTypes.hpp>
#include <v0/org/genivi/navigation/freetextsearchservice/FreeTextSearch.hpp>
#include <v0/org/genivi/navigation/freetextsearchservice/FreeTextSearchStubDefault.hpp>

using namespace v0::org::genivi::navigation::freetextsearchservice;
using namespace org::genivi::navigation;
using namespace org::genivi;

class FreeTextSearchStubImpl: public FreeTextSearchStubDefault {

public:
	FreeTextSearchStubImpl();
    ~FreeTextSearchStubImpl();
    void getVersion(const std::shared_ptr<CommonAPI::ClientId> _client,	FreeTextSearch::RequestId _requestId, getVersionReply_t _reply);
    void ftsRequest(const std::shared_ptr<CommonAPI::ClientId> _client, FreeTextSearch::RequestId _requestId,
    		                FreeTextSearch::FtsString _inputString, ::org::genivi::navigation::NavigationTypes::Coordinate2D _searchLocation,
							FreeTextSearch::ShapeList _searchShapes, FreeTextSearch::PageSize _pageSize,
							FreeTextSearch::SearchOptions _searchOptions, FreeTextSearch::FtsString _searchConditions,
							FreeTextSearch::FuzzyLevel _fuzzyLevel, ftsRequestReply_t _reply);
    void ftsNextPage(const std::shared_ptr<CommonAPI::ClientId> _client, FreeTextSearch::RequestId _requestId,
    		                NavigationTypes::Handle _freeTextSearchHandle, FreeTextSearch::SearchOptions _searchOptions,
							ftsNextPageReply_t _reply);
    void ftsCancel(const std::shared_ptr<CommonAPI::ClientId> _client, FreeTextSearch::RequestId _requestId,
    		               NavigationTypes::Handle _freeTextSearchHandle, ftsCancelReply_t _reply);
    void deleteLocationHandles(const std::shared_ptr<CommonAPI::ClientId> _client, FreeTextSearch::RequestId _requestId,
    		               FreeTextSearch::LocationHandleList _locationHandleList, deleteLocationHandlesReply_t _reply);

};

#endif /* FREETEXTSEARCHSTUBIMPL_H_ */