Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / konqueror / settings / konq / globalpaths.h
blob2d25f6a1d0c6e1741a7b178171ce091d27f6e6f3
1 /**
2 * Copyright (c) Martin R. Jones 1996
3 * Copyright 1998-2007 David Faure <faure@kde.org>
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.
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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 // Summarized history:
22 // "Desktop Icons Options" Tab for KDesktop configuration
23 // Martin Jones
25 // Port to KControl, split from "Misc" Tab, Port to KControl2
26 // (c) David Faure 1998
27 // Desktop menus, paths
28 // (c) David Faure 2000
30 #ifndef __GLOBALPATHS_H
31 #define __GLOBALPATHS_H
33 #include <kcmodule.h>
34 #include <kio/global.h>
35 #include <kio/udsentry.h>
36 #include <kurl.h>
38 class KJob;
39 class KUrlRequester;
40 class QStringList;
42 namespace KIO { class Job; }
44 //-----------------------------------------------------------------------------
45 // The "Path" Tab contains :
46 // The paths for Desktop, Autostart and Documents
48 class DesktopPathConfig : public KCModule
50 Q_OBJECT
51 public:
52 DesktopPathConfig( QWidget *parent, const QVariantList &args );
53 virtual void load();
54 virtual void save();
55 virtual void defaults();
57 private Q_SLOTS:
58 void slotEntries( KIO::Job * job, const KIO::UDSEntryList& list);
60 private:
61 // Desktop Paths
62 KUrlRequester *urDesktop;
63 KUrlRequester *urAutostart;
64 KUrlRequester *urDocument;
66 bool moveDir( const KUrl & src, const KUrl & dest, const QString & type );
67 bool m_ok;
68 KUrl m_copyToDest; // used when the destination directory already exists
69 KUrl m_copyFromSrc;
71 private Q_SLOTS:
72 void slotResult( KJob * job );
75 #endif