Files
o3de/Code/Tools/News/NewsShared/Qt/KeepInTouchView.h
T
2021-06-23 10:55:22 -07:00

54 lines
1.2 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#if !defined(Q_MOC_RUN)
#include <QWidget>
#endif
namespace Ui
{
class KeepInTouchViewWidget;
}
namespace News
{
class KeepInTouchView
: public QWidget
{
Q_OBJECT
enum class SocialMediaType
{
Twitch,
Twitter,
YouTube,
Facebook
};
public:
KeepInTouchView(QWidget* parent);
~KeepInTouchView() = default;
bool eventFilter(QObject *watched, QEvent *event);
Q_SIGNALS:
void linkActivatedSignal(const QString& link);
private:
bool LaunchSocialMediaUrl(SocialMediaType type);
Ui::KeepInTouchViewWidget* m_ui = nullptr;
const char* m_twitchUrl = "https://docs.aws.amazon.com/console/lumberyard/twitch";
const char* m_twitterUrl = "https://docs.aws.amazon.com/console/lumberyard/twitter";
const char* m_youtubeUrl = "https://docs.aws.amazon.com/console/lumberyard/youtube";
const char* m_facebookUrl = "https://docs.aws.amazon.com/console/lumberyard/facebook";
};
}