~ubuntu-branches/ubuntu/quantal/kde4libs/quantal

« back to all changes in this revision

Viewing changes to .pc/10_make_libkdeinit4_private.diff/kdecore/kernel/kstandarddirs_win.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Philip Muškovac, Jonathan Thomas, Felix Geyer
  • Date: 2011-05-29 17:19:55 UTC
  • mfrom: (1.14.5 upstream) (0.1.19 sid)
  • Revision ID: package-import@ubuntu.com-20110529171955-nodep1593tuwyu6k
Tags: 4:4.6.3-1ubuntu1
[ Philip Muškovac]
* Drop kubuntu_83_fix_solid_network_status.diff
* Update Vcs links as the branch is owned by kubuntu-packagers now

[ Jonathan Thomas ]
* Drop kubuntu_06_user_disk_mounting. We no longer compile the hal
  backend, so this patch is useless.

[ Felix Geyer ]
* Merge from Debian unstable, remaining changes:
  - no build-dep on libaspell-dev
  - no build-dep on libfam-dev
  - kdelibs5-data: don't install kspell_aspell.desktop and
    usr/lib/kde4/kspell_aspell.so
  - kdelibs5-dev: don't install preparetips
  - Pass -DKDESU_USE_SUDO_DEFAULT=true to configure
  - dh_fixperms: exclude /usr/lib/kde4/libexec/fileshareset
  - set export KUBUNTU_DESKTOP_POT=kdelibs
  - don't apply use_dejavu_as_default_font.diff
  - don't apply kconf_update_migrate_from_kde3_icon_theme.diff
    - kdelibs5-data.install: drop usr/share/kde4/apps/kconf_update/kdeui.upd
  - don't build depend on libglu1-mesa-dev, not needed due to
    kubuntu_no_direct_gl_usage.diff
  - Add kdelibs5-data.links: link from /usr/share/doc/kde4 to kde for
    backwards compatible with old docs location
  - Keep the kdelibs5 transitional package
  - kdelibs5-dev.install: install ksambasharedata.h
  - kdelibs5-plugins: recommend ttf-dejavu-core instead of ttf-dejavu to save
    CD space.
* Add Breaks in addition to Replaces for moving files between packages.
* Drop no longer needed Breaks and Replaces.
* Completely drop kubuntu_51_launchpad_integration.diff and
  kubuntu_68_remove_applet_confirmation.diff.
  + Also drop the launchpad and kubuntu icons.
* Remove sequence numbers from kubuntu patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of the KDE libraries
2
 
   Copyright (C) 2007 Bernhard Loos <nhuh.put@web.de>
3
 
   Copyright (C) 2008 Christian Ehrlicher <ch.ehrlicher@gmx.de>
4
 
 
5
 
   This library is free software; you can redistribute it and/or
6
 
   modify it under the terms of the GNU Library General Public
7
 
   License version 2 as published by the Free Software Foundation.
8
 
 
9
 
   This library is distributed in the hope that it will be useful,
10
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
   Library General Public License for more details.
13
 
 
14
 
   You should have received a copy of the GNU Library General Public License
15
 
   along with this library; see the file COPYING.LIB.  If not, write to
16
 
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
 
   Boston, MA 02110-1301, USA.
18
 
*/
19
 
 
20
 
#include "kstandarddirs.h"
21
 
 
22
 
#include <config-prefix.h>
23
 
#include <config.h>
24
 
#include "kkernel_win.h"
25
 
 
26
 
QString getKde4Prefix();
27
 
 
28
 
inline QString prefix()        { return getKde4Prefix(); }
29
 
inline QString share()         { return getKde4Prefix() + QLatin1String("share/"); }
30
 
inline QString kde_moduledir() { return getKde4Prefix() + QLatin1String("lib/kde4/"); }
31
 
 
32
 
QString KStandardDirs::installPath(const char *type)
33
 
{
34
 
    Q_ASSERT(type != NULL);
35
 
 
36
 
    switch (type[0]) {
37
 
        case 'a':
38
 
            if (strcmp("apps", type) == 0)
39
 
                return share() + QLatin1String("applnk/");
40
 
            break;
41
 
        case 'c':
42
 
            if (strcmp("config", type) == 0)
43
 
                return share() + QLatin1String("config/");
44
 
            break;
45
 
        case 'k':
46
 
            if (strcmp("kcfg", type) == 0)
47
 
                return share() + QLatin1String("config.kcfg/");
48
 
            if (strcmp("kdedir", type) == 0)
49
 
                return prefix();
50
 
            break;
51
 
        case 'd':
52
 
            if (strcmp("data", type) == 0)
53
 
                return share() + QLatin1String("apps/");
54
 
            break;
55
 
        case 'e':
56
 
            if (strcmp("exe", type) == 0)
57
 
                return prefix() + QLatin1String("bin/");
58
 
            break;
59
 
        case 'h':
60
 
            if (strcmp("html", type) == 0)
61
 
                return share() + QLatin1String("doc/HTML/");
62
 
            break;
63
 
        case 'i':
64
 
            if (strcmp("icon", type) == 0)
65
 
                return share() + QLatin1String("icons/");
66
 
            if (strcmp("include", type) == 0)
67
 
                return prefix() + QLatin1String("include/");
68
 
            break;
69
 
        case 'l':
70
 
            if (strcmp("lib", type) == 0)
71
 
                return prefix() + QLatin1String("lib" KDELIBSUFF "/");
72
 
            if (strcmp("libexec", type) == 0)
73
 
                return prefix() + QLatin1String("lib" KDELIBSUFF "/kde4/libexec/");
74
 
            if (strcmp("locale", type) == 0)
75
 
                return share() + QLatin1String("locale/");
76
 
            break;
77
 
        case 'm':
78
 
            if (strcmp("module", type) == 0)
79
 
                return kde_moduledir();
80
 
            if (strcmp("mime", type) == 0)
81
 
                return share() + QLatin1String("mimelnk/");
82
 
            break;
83
 
        case 'q':
84
 
            if (strcmp("qtplugins", type) == 0)
85
 
                return kde_moduledir() + QLatin1String("plugins/");
86
 
            break;
87
 
        case 's':
88
 
            if (strcmp("services", type) == 0)
89
 
                return share() + QLatin1String("kde4/services/");
90
 
            if (strcmp("servicetypes", type) == 0)
91
 
                return share() + QLatin1String("kde4/servicetypes/");
92
 
            if (strcmp("sound", type) == 0)
93
 
                return share() + QLatin1String("sounds/");
94
 
            break;
95
 
        case 't':
96
 
            if (strcmp("templates", type) == 0)
97
 
                return share() + QLatin1String("templates/");
98
 
            break;
99
 
        case 'w':
100
 
            if (strcmp("wallpaper", type) == 0)
101
 
                return share() + QLatin1String("wallpapers/");
102
 
            break;
103
 
        case 'x':
104
 
            if (strcmp("xdgconf-menu", type) == 0)
105
 
                return share() + QLatin1String("xdg/menus/");
106
 
            if (strcmp("xdgdata-apps", type) == 0)
107
 
                return share() + QLatin1String("applications/kde4/");
108
 
            if (strcmp("xdgdata-dirs", type) == 0)
109
 
                return share() + QLatin1String("desktop-directories/");
110
 
            break;
111
 
    }
112
 
    return QString();
113
 
}