mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-21 05:13:04 +03:00
31 lines
585 B
C
31 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;
|
||
|
};
|
||
|
}
|