Welcome to mirror list, hosted at ThFree Co, Russian Federation.

profilepagewidget.h « gui « src - github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 637dbd460e15eea062526b9bd8a5ac6dfe4a545f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#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;
};
}