nextcloud-desktop/src/gui/profilepagewidget.h
Felix Weilbach db337c4457 Add profile page
Fix: #3889

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
2021-11-10 13:11:47 +01:00

30 lines
585 B
C++

#pragma once
#include "ocsprofileconnector.h"
#include <QBoxLayout>
#include <QLabel>
#include <account.h>
#include <QMenu>
#include <cstddef>
namespace OCC {
class ProfilePageMenu : public QWidget
{
Q_OBJECT
public:
explicit ProfilePageMenu(AccountPtr account, const QString &shareWithUserId, QWidget *parent = nullptr);
~ProfilePageMenu() override;
void exec(const QPoint &globalPosition);
private:
void onHovercardFetched();
void onIconLoaded(const std::size_t &hovercardActionIndex);
OcsProfileConnector _profileConnector;
QMenu _menu;
};
}