blob: 7daecaaed706533a9331f02204eeb32d907a2188 [file] [log] [blame]
Sébastien Blin05752142017-10-03 11:25:02 -04001/****************************************************************************
Guillaume Roguez77c579d2018-01-30 15:54:02 -05002 * Copyright (C) 2017-2018 Savoir-faire Linux *
Sébastien Blin05752142017-10-03 11:25:02 -04003 * Author: Nicolas Jäger <nicolas.jager@savoirfairelinux.com> *
4 * Author: Sébastien Blin <sebastien.blin@savoirfairelinux.com> *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of the GNU Lesser General Public *
8 * License as published by the Free Software Foundation; either *
9 * version 2.1 of the License, or (at your option) any later version. *
10 * *
11 * This library is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 ***************************************************************************/
19#pragma once
20
21// Lrc
22#include <api/account.h>
23
24/**
25 * This class contains a const reference linked to an account.
26 * NOTE: it avoids weird initialization with Gtk
27 * @param accInfo the account linked
28 */
29class AccountContainer {
30
31public:
32 explicit AccountContainer (const lrc::api::account::Info& accInfo)
33 : info(accInfo)
34 {}
35
36 const lrc::api::account::Info& info;
37};