Sébastien Blin | 0575214 | 2017-10-03 11:25:02 -0400 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | * Copyright (C) 2017 Savoir-faire Linux * |
| 3 | * 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 | */ |
| 29 | class AccountContainer { |
| 30 | |
| 31 | public: |
| 32 | explicit AccountContainer (const lrc::api::account::Info& accInfo) |
| 33 | : info(accInfo) |
| 34 | {} |
| 35 | |
| 36 | const lrc::api::account::Info& info; |
| 37 | }; |