X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=launcher%2Fsrc%2Fapplicationmodel.h;h=780e57525bfe176843ac3798ff4ec84b6c79557f;hb=fc41fa6da7f64262a7bbc4313b920762e1a31d15;hp=8398b62cee3c47ee752dd195a67c13cfe2db2295;hpb=cde1f8b32286b263040cd1d9360f4b8835699505;p=apps%2Flauncher.git diff --git a/launcher/src/applicationmodel.h b/launcher/src/applicationmodel.h index 8398b62..780e575 100644 --- a/launcher/src/applicationmodel.h +++ b/launcher/src/applicationmodel.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2016 The Qt Company Ltd. - * Copyright (c) 2018 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. @@ -31,9 +31,12 @@ public: QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; QHash roleNames() const override; + Q_INVOKABLE QString appid(int index) const; Q_INVOKABLE QString id(int index) const; Q_INVOKABLE QString name(int index) const; Q_INVOKABLE void move(int from, int to); + Q_INVOKABLE void initAppList(QString data); + Q_INVOKABLE void updateApplist(QStringList info); private: class Private;