push 916d6ae32ef88182ddeeedd2a4b2365cc3694db5
[tagua/yd.git] / src / variant.cpp
blob13037ffb017e770ac394e5e4c81fa8470f5c561f
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #include "variant.h"
13 Variant::Variant(const QString& name, Repository* repo,
14 const QString& proxy, bool hidden)
15 : m_name(name)
16 , m_proxy(proxy)
17 , m_hidden(hidden)
18 , m_repo(repo) { }
20 Variant::~Variant() {
21 delete m_repo;
24 QString Variant::proxy() const { return m_proxy; }
26 QString Variant::name() const { return m_name; }
28 bool Variant::hidden() const { return m_hidden; }
30 Repository* Variant::repository() { return m_repo; }
31 const Repository* Variant::repository() const { return m_repo; }