blob: a34150f9886e44dae2e64b24071d9a3dc1001180 [file] [log] [blame]
// Copyright (C) 2015 The Android Open Source Project
//
// This software is licensed under the terms of the GNU General Public
// License version 2, as published by the Free Software Foundation, and
// may be copied, distributed, and modified under those terms.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
#pragma once
#include "android/skin/qt/shortcut-key-store.h"
#include "android/skin/qt/qt-ui-commands.h"
#include "ui_help-page.h"
#include <QWidget>
#include <memory>
class HelpPage : public QWidget
{
Q_OBJECT
public:
explicit HelpPage(QWidget *parent = 0);
void initialize(const ShortcutKeyStore<QtUICommand>* key_store);
void setAdbPort();
signals:
void adbPortUpdateRequired();
private slots:
void on_help_docs_clicked();
void on_help_fileBug_clicked();
void on_help_sendFeedback_clicked();
void updateAdbPortNumber();
private:
void initializeLicenseText();
void initializeKeyboardShortcutList(const ShortcutKeyStore<QtUICommand>* key_store);
std::unique_ptr<Ui::HelpPage> mUi;
};
class LatestVersionLoadTask : public QObject {
Q_OBJECT
public slots:
void run();
signals:
void finished(QString version);
};