~ubuntu-branches/ubuntu/maverick/kdebase/maverick-updates

« back to all changes in this revision

Viewing changes to apps/konqueror/settings/kio/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers, Martin Alfke, Modestas Vainius
  • Date: 2010-05-01 23:37:50 UTC
  • mfrom: (0.7.4 upstream) (0.4.4 experimental)
  • mto: This revision was merged to the branch mainline in revision 285.
  • Revision ID: james.westby@ubuntu.com-20100501233750-maq4i4sh8ymjbneb
Tags: 4:4.4.3-1
* New upstream release:
  - Konsole does not crash when closing a broken restored session.
    (Closes: #555831)
  - Konqueror does not crash when closing fast a tab. (Closes: #441298)

[Martin Alfke]
* Update of debian/copyright for kde 4.4

[ Modestas Vainius ]
* Bump kde-sc-dev-latest build dependency to 4.4.3.
* Confirm symbol files for 4.4.2 on hurd-i386 i386 ia64 kfreebsd-amd64
  kfreebsd-i386 mips powerpc s390 sparc.
* Release KDE SC 4.4.3 to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// (c) Torben Weis 1998
2
2
// (c) David Faure 1998
3
3
/*
4
 
 * main.cpp for lisa,reslisa,kio_lan and kio_rlan kcm module
 
4
 * main.cpp for creating the konqueror kio kcm modules
5
5
 *
6
 
 *  Copyright (C) 2000,2001 Alexander Neundorf <neundorf@kde.org>
 
6
 *  Copyright (C) 2000,2001,2009 Alexander Neundorf <neundorf@kde.org>
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
9
9
 *  it under the terms of the GNU General Public License as published by
20
20
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21
21
 */
22
22
 
23
 
// Own
24
 
#include "main.h"
25
 
 
26
23
// Qt
27
24
#include <QtCore/QFile>
28
25
#include <QtGui/QLabel>
45
42
#include "bookmarks.h"
46
43
 
47
44
K_PLUGIN_FACTORY(KioConfigFactory,
48
 
        registerPlugin<LanBrowser>("lanbrowser");
49
45
        registerPlugin<UserAgentDlg>("useragent");
50
46
        registerPlugin<SMBRoOptions>("smb");
51
47
        registerPlugin<KIOPreferences>("netpref");
56
52
        )
57
53
K_EXPORT_PLUGIN(KioConfigFactory("kcmkio"))
58
54
 
59
 
LanBrowser::LanBrowser(QWidget *parent, const QVariantList &)
60
 
    : KCModule(KioConfigFactory::componentData(), parent)
61
 
    , layout(this)
62
 
    , tabs(this)
63
 
{
64
 
   setQuickHelp( i18n("<h1>Local Network Browsing</h1>Here you setup your "
65
 
                "<b>\"Network Neighborhood\"</b>. You "
66
 
                "can use either the LISa daemon and the lan:/ ioslave, or the "
67
 
                "ResLISa daemon and the rlan:/ ioslave.<br /><br />"
68
 
                "About the <b>LAN ioslave</b> configuration:<br /> If you select it, the "
69
 
                "ioslave, <i>if available</i>, will check whether the host "
70
 
                "supports this service when you open this host. Please note "
71
 
                "that paranoid people might consider even this to be an attack.<br />"
72
 
                "<i>Always</i> means that you will always see the links for the "
73
 
                "services, regardless of whether they are actually offered by the host. "
74
 
                "<i>Never</i> means that you will never have the links to the services. "
75
 
                "In both cases you will not contact the host, so nobody will ever regard "
76
 
                "you as an attacker.<br /><br />More information about <b>LISa</b> "
77
 
                "can be found at <a href=\"http://lisa-home.sourceforge.net\">"
78
 
                "the LISa Homepage</a> or contact Alexander Neundorf "
79
 
                "&lt;<a href=\"mailto:neundorf@kde.org\">neundorf@kde.org</a>&gt;."));
80
 
   
81
 
   layout.setMargin(0);
82
 
   layout.addWidget(&tabs);
83
 
 
84
 
   smbPage = new SMBRoOptions(&tabs, QVariantList(), componentData());
85
 
   tabs.addTab(smbPage, i18n("&Windows Shares"));
86
 
   connect(smbPage,SIGNAL(changed(bool)), SIGNAL( changed(bool) ));
87
 
 
88
 
   lisaPage = KCModuleLoader::loadModule("kcmlisa", KCModuleLoader::None,&tabs);
89
 
   if (lisaPage)
90
 
   {
91
 
     tabs.addTab(lisaPage,i18n("&LISa Daemon"));
92
 
     connect(lisaPage,SIGNAL(changed()), SLOT( changed() ));
93
 
   }
94
 
 
95
 
//   resLisaPage = KCModuleLoader::loadModule("kcmreslisa", KCModuleLoader::None,&tabs);
96
 
//   if (resLisaPage)
97
 
//   {
98
 
//     tabs.addTab(resLisaPage,i18n("R&esLISa Daemon"));
99
 
//     connect(resLisaPage,SIGNAL(changed()), SLOT( changed() ));
100
 
//   }
101
 
 
102
 
   kioLanPage = KCModuleLoader::loadModule("kcmkiolan", KCModuleLoader::None, &tabs);
103
 
   if (kioLanPage)
104
 
   {
105
 
     tabs.addTab(kioLanPage,i18n("lan:/ Iosla&ve"));
106
 
     connect(kioLanPage,SIGNAL(changed()), SLOT( changed() ));
107
 
   }
108
 
 
109
 
   setButtons(Apply|Help);
110
 
}
111
 
 
112
 
void LanBrowser::load()
113
 
{
114
 
   smbPage->load();
115
 
   if (lisaPage)
116
 
     lisaPage->load();
117
 
//   if (resLisaPage)
118
 
//     resLisaPage->load();
119
 
   if (kioLanPage)
120
 
     kioLanPage->load();
121
 
   emit changed(false);
122
 
}
123
 
 
124
 
void LanBrowser::save()
125
 
{
126
 
   smbPage->save();
127
 
//   if (resLisaPage)
128
 
//     resLisaPage->save();
129
 
   if (kioLanPage)
130
 
     kioLanPage->save();
131
 
   if (lisaPage)
132
 
     lisaPage->save();
133
 
   emit changed(false);
134
 
}
135
 
 
136
 
#include "main.moc"
137