pull in new policy updates
[profile/ivi/smartdevicelink.git] / src / components / policy / src / policy / include / policy / sql_pt_queries.h
1 /*
2  Copyright (c) 2013, " Ford Motor Company
3  All rights reserved.
4
5  Redistribution and use in source and binary forms, " with or without
6  modification, " are permitted provided that the following conditions are met:
7
8  Redistributions of source code must retain the above copyright notice, " this
9  list of conditions and the following disclaimer.
10
11  Redistributions in binary form must reproduce the above copyright notice, "
12  this list of conditions and the following
13  disclaimer in the documentation and/or other materials provided with the
14  distribution.
15
16  Neither the name of the Ford Motor Company nor the names of its contributors
17  may be used to endorse or promote products derived from this software
18  without specific prior written permission.
19
20  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  AND ANY EXPRESS OR IMPLIED WARRANTIES, " INCLUDING, " BUT NOT LIMITED TO, " THE
22  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24  LIABLE FOR ANY DIRECT, " INDIRECT, " INCIDENTAL, " SPECIAL, " EXEMPLARY, " OR
25  CONSEQUENTIAL DAMAGES (INCLUDING, " BUT NOT LIMITED TO, " PROCUREMENT OF
26  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, " DATA, " OR PROFITS; OR BUSINESS
27  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, " WHETHER IN
28  CONTRACT, " STRICT LIABILITY, " OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, " EVEN IF ADVISED OF THE
30  POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #ifndef SRC_COMPONENTS_POLICY_INCLUDE_POLICY_SQL_PT_QUERIES_H_
34 #define SRC_COMPONENTS_POLICY_INCLUDE_POLICY_SQL_PT_QUERIES_H_
35
36 #include <string>
37
38 namespace policy {
39 namespace sql_pt {
40
41 extern const std::string kCreateSchema;
42 extern const std::string kDropSchema;
43 extern const std::string kDeleteData;
44 extern const std::string kCheckPgNumber;
45 extern const std::string kCheckDBIntegrity;
46 extern const std::string kSelectRpc;
47 extern const std::string kSelectPreloaded;
48 extern const std::string kSelectEndpoint;
49 extern const std::string kSelectModuleConfig;
50 extern const std::string kSelectEndpoints;
51 extern const std::string kSelectNotificationsPerMin;
52 extern const std::string kSelectAppLevels;
53 extern const std::string kSelectDeviceData;
54 extern const std::string kSelectFunctionalGroups;
55 extern const std::string kSelectAllRpcs;
56 extern const std::string kSelectUserMsgsVersion;
57 extern const std::string kSelectAppPolicies;
58 extern const std::string kSelectAppGroups;
59 extern const std::string kSelectNicknames;
60 extern const std::string kSelectAppTypes;
61 extern const std::string kSelectSecondsBetweenRetries;
62 extern const std::string kSelectIgnitionCycles;
63 extern const std::string kSelectKilometers;
64 extern const std::string kSelectDays;
65 extern const std::string kSelectTimeoutResponse;
66 extern const std::string kInsertFunctionalGroup;
67 extern const std::string kInsertRpc;
68 extern const std::string kInsertRpcWithParameter;
69 extern const std::string kInsertApplication;
70 extern const std::string kInsertAppGroup;
71 extern const std::string kInsertNickname;
72 extern const std::string kInsertAppType;
73 extern const std::string kInsertMessageType;
74 extern const std::string kInsertLanguage;
75 extern const std::string kInsertMessageString;
76 extern const std::string kUpdateVersion;
77 extern const std::string kUpdateModuleConfig;
78 extern const std::string kInsertEndpoint;
79 extern const std::string kInsertSecondsBetweenRetry;
80 extern const std::string kInsertNotificationsByPriority;
81 extern const std::string kInsertDeviceData;
82 extern const std::string kInsertAppLevel;
83 extern const std::string kDeleteSecondsBetweenRetries;
84 extern const std::string kDeleteEndpoint;
85 extern const std::string kDeleteAppLevel;
86 extern const std::string kDeleteMessageString;
87 extern const std::string kDeleteFunctionalGroup;
88 extern const std::string kDeleteRpc;
89 extern const std::string kDeleteAppGroup;
90 extern const std::string kDeleteApplication;
91 extern const std::string kDeleteDevice;
92 extern const std::string kIncrementIgnitionCycles;
93 extern const std::string kResetIgnitionCycles;
94 extern const std::string kUpdateFlagUpdateRequired;
95 extern const std::string kSelectFlagUpdateRequired;
96 extern const std::string kUpdateCountersSuccessfulUpdate;
97 extern const std::string kSelectApplicationRevoked;
98 extern const std::string kSelectApplicationRepresented;
99 extern const std::string kSelectApplicationIsDefault;
100 extern const std::string kUpdateIsDefault;
101 extern const std::string kInsertInitData;
102
103 }  // namespace sql_pt
104 }  // namespace policy
105
106 #endif  // SRC_COMPONENTS_POLICY_INCLUDE_POLICY_SQL_PT_QUERIES_H_