~dantti/apper/master

« back to all changes in this revision

Viewing changes to libshared/KpkStrings.h

  • Committer: Daniel Nicoletti
  • Date: 2011-07-27 21:02:31 UTC
  • Revision ID: git-v1:2fb51b7787e2e9d70d2085cc8181a12f4277b047
The idea of libshared, was for it to be static, as
this doesn't seem too simple as putting STATIC word
I'm renaming it to libapper so we don't have such a geniric
lib installed (as pointed by Kevin Kofler

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2008-2010 by Daniel Nicoletti                           *
3
 
 *   dantti85-pk@yahoo.com.br                                              *
4
 
 *                                                                         *
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
 
 *                                                                         *
10
 
 *   This program is distributed in the hope that it will be useful,       *
11
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
 
 *   GNU General Public License for more details.                          *
14
 
 *                                                                         *
15
 
 *   You should have received a copy of the GNU General Public License     *
16
 
 *   along with this program; see the file COPYING. If not, write to       *
17
 
 *   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,  *
18
 
 *   Boston, MA 02110-1301, USA.                                           *
19
 
 ***************************************************************************/
20
 
 
21
 
#ifndef KPK_STRINGS_H
22
 
#define KPK_STRINGS_H
23
 
 
24
 
#include <kdemacros.h>
25
 
 
26
 
#include <Transaction>
27
 
 
28
 
using namespace PackageKit;
29
 
 
30
 
namespace KpkStrings
31
 
{
32
 
    KDE_EXPORT QString finished(Transaction::Exit status);
33
 
    KDE_EXPORT QString infoPresent(Package::Info info);
34
 
    KDE_EXPORT QString infoPast(Package::Info info);
35
 
    KDE_EXPORT QString error(Transaction::Error error);
36
 
    KDE_EXPORT QString errorMessage(Transaction::Error error);
37
 
    KDE_EXPORT QString message(Transaction::Message type);
38
 
    KDE_EXPORT QString status(Transaction::Status status);
39
 
    KDE_EXPORT QString statusPast(Transaction::Status status);
40
 
    KDE_EXPORT QString groups(Package::Group group);
41
 
    KDE_EXPORT QString info(Package::Info state);
42
 
    KDE_EXPORT QString packageQuantity(bool updates, int packages, int selected);
43
 
    KDE_EXPORT QString updateState(Package::UpdateState value);
44
 
    KDE_EXPORT QString restartType(Package::Restart value);
45
 
    KDE_EXPORT QString restartTypeFuture(Package::Restart value);
46
 
    KDE_EXPORT QString action(Transaction::Role action);
47
 
    KDE_EXPORT QString actionPast(Transaction::Role action);
48
 
    KDE_EXPORT QString mediaMessage(Transaction::MediaType value, const QString &text);
49
 
    KDE_EXPORT QString daemonError(Transaction::InternalError value);
50
 
};
51
 
 
52
 
#endif