2 * Copyright (C) 2016 The Qt Company Ltd.
3 * Copyright (c) 2018 TOYOTA MOTOR CORPORATION
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 //#define SERVER_DOMAIN "192.168.20.161/webservice"
22 #define SERVER_DOMAIN "202.7.19.45/webservice"
23 //#define SERVER_DOMAIN "warehouse.tmc-tokai.jp/webservice"
24 #define SERVER_BASE_URL "/api/v1/app"
25 #define SERVER_API_LIST "/collection"
28 QString("http://%1%2%3").arg(SERVER_DOMAIN, SERVER_BASE_URL, api)
29 #define getUrlWithPage(api, offset, limit) \
31 QString("?sort=updateDate&order=desc&offset=%1&limit=%2") \
32 .arg(QString::number(offset), QString::number(limit)))
34 //#define getWgtUrl(path, typeId, appId) \
35 // QString("http://%1%2/file/%3/%4/%5") \
36 // .arg(SERVER_DOMAIN, SERVER_BASE_URL, path, typeId, appId)
37 #define getWgtUrl(path) \
38 QString("http://%1%2/file?filePath=%3") \
39 .arg(SERVER_DOMAIN, SERVER_BASE_URL, path)
41 // server app page config
44 #define getDownloadFilePath(filename) QString("/tmp/%1").arg(filename)