aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/terminal/shellmodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/terminal/shellmodel.h')
-rw-r--r--src/plugins/terminal/shellmodel.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/plugins/terminal/shellmodel.h b/src/plugins/terminal/shellmodel.h
new file mode 100644
index 00000000000..272f3fcd394
--- /dev/null
+++ b/src/plugins/terminal/shellmodel.h
@@ -0,0 +1,37 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
+
+#pragma once
+
+#include <utils/terminalhooks.h>
+
+#include <QIcon>
+#include <QObject>
+#include <QString>
+
+#include <memory>
+
+namespace Terminal::Internal {
+struct ShellModelPrivate;
+
+struct ShellModelItem
+{
+ QString name;
+ QIcon icon;
+ Utils::Terminal::OpenTerminalParameters openParameters;
+};
+
+class ShellModel : public QObject
+{
+public:
+ ShellModel(QObject *parent = nullptr);
+ ~ShellModel();
+
+ QList<ShellModelItem> local() const;
+ QList<ShellModelItem> remote() const;
+
+private:
+ std::unique_ptr<ShellModelPrivate> d;
+};
+
+} // namespace Terminal::Internal