~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to kbugbuster/backend/bugsystem.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __bugsystem_h__
2
 
#define __bugsystem_h__
 
1
/* This file is part of kdesdk / KBugBuster.
 
2
 
 
3
   Copyright 2008  KBugBuster Authors <kde-ev-board@kde.org>
 
4
 
 
5
   This program is free software; you can redistribute it and/or
 
6
   modify it under the terms of the GNU General Public License as
 
7
   published by the Free Software Foundation; either version 2 of
 
8
   the License or (at your option) version 3 or any later version
 
9
   accepted by the membership of KDE e.V. (or its successor approved
 
10
   by the membership of KDE e.V.), which shall act as a proxy 
 
11
   defined in Section 14 of version 3 of the license.
 
12
 
 
13
   This program is distributed in the hope that it will be useful,
 
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
   GNU General Public License for more details.
 
17
 
 
18
   You should have received a copy of the GNU General Public License
 
19
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
*/
 
21
#ifndef BUGSYSTEM_H
 
22
#define BUGSYSTEM_H
3
23
 
4
24
#include "package.h"
5
25
#include "bug.h"
8
28
 
9
29
#include <kurl.h>
10
30
 
11
 
#include <qobject.h>
12
 
#include <qptrlist.h>
13
 
#include <qmap.h>
14
 
#include <qpair.h>
 
31
#include <QObject>
 
32
#include <Q3PtrList>
 
33
#include <QMap>
 
34
#include <QPair>
15
35
 
16
36
class KConfig;
17
37
 
36
56
    /**
37
57
      BugSystem takes ownership of the BugServerConfig objects.
38
58
    */
39
 
    void setServerList( const QValueList<BugServerConfig> &servers );
40
 
    QValueList<BugServer *> serverList();
 
59
    void setServerList( const QList<BugServerConfig> &servers );
 
60
    QList<BugServer *> serverList();
41
61
 
42
62
    void setCurrentServer( const QString & );
43
63
 
75
95
    Package package( const QString &pkgname ) const;
76
96
    Bug bug( const Package &pkg, const QString &component, const QString &number ) const;
77
97
 
78
 
    static void saveQuery( const KURL &url );
 
98
    static void saveQuery( const KUrl &url );
79
99
    static void saveResponse( const QByteArray &d );
80
100
    static QString lastResponse();
81
101
 
130
150
 
131
151
    BugServer *mServer;
132
152
 
133
 
    QValueList<BugServer *> mServerList;
 
153
    QList<BugServer *> mServerList;
134
154
 
135
 
    QPtrList<BugJob> mJobs;
 
155
    Q3PtrList<BugJob> mJobs;
136
156
 
137
157
    static BugSystem *s_self;
138
158