X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Fhomescreenhandler.h;fp=app%2Fhomescreenhandler.h;h=7ca9cd05e768649cd652b9caced1d82ab7baac4e;hb=d0e544716f90eff4e3d6a9490d1c6d86a1bba047;hp=0000000000000000000000000000000000000000;hpb=d37674bb6dbb5ceb15c650a0344b0caf624963bc;p=apps%2Fhvac.git diff --git a/app/homescreenhandler.h b/app/homescreenhandler.h new file mode 100644 index 0000000..7ca9cd0 --- /dev/null +++ b/app/homescreenhandler.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2017 TOYOTA MOTOR CORPORATION + * Copyright (c) 2018,2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef HOMESCREENHANDLER_H +#define HOMESCREENHANDLER_H + +#include +#include +#include +#include + +#include "applaunch_interface.h" + +using namespace std; + +class HomescreenHandler : public QObject +{ + Q_OBJECT +public: + explicit HomescreenHandler(QObject *parent = 0); + ~HomescreenHandler(); + + Q_INVOKABLE void setOrientation(QString application_id, uint32_t orientation); + void onRep(struct json_object* reply_contents); + +private: + org::automotivelinux::AppLaunch *applaunch_iface; +}; + +#endif // HOMESCREENHANDLER_H