summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/package.h
blob: d7001c90f1dfbaf7174e43178f936d29bba39899 (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
31
32
33
34
35
36
37
38
39
40
#ifndef __package_h__
#define __package_h__

#include "person.h"

#include <tqvaluelist.h>

#include <ksharedptr.h>

class PackageImpl;

class Package
{
public:
    typedef TQValueList<Package> List;

    Package();
    Package( PackageImpl *impl );
    Package( const Package &other );
    Package &operator=( const Package &rhs );
    ~Package();

    TQString name() const;
    TQString description() const;
    uint numberOfBugs() const;
    Person maintainer() const;
    const TQStringList components() const;

    bool isNull() const { return m_impl == 0; }

    PackageImpl *impl() const { return m_impl; }

    bool operator==( const Package &rhs );
    bool operator<( const Package &rhs ) const;

private:
    TDESharedPtr<PackageImpl> m_impl;
};

#endif