summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-13 06:26:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-13 06:26:27 +0000
commit9fab5b8a216e283e563f3457315715672bc8b55a (patch)
treec1251952e4e0e28fad0bca829d49335ff15b6e98
parentbcb704366cb5e333a626c18c308c7e0448a8e69f (diff)
downloadtdenetwork-9fab5b8a.tar.gz
tdenetwork-9fab5b8a.zip
Update to Trinity 3.5.11
Will need to watch for commit warnings and rebuild test git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1061808 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--filesharing/advanced/kcm_sambaconf/kcmsambaconf.desktop2
-rw-r--r--filesharing/advanced/kcm_sambaconf/sambashare.cpp5
-rw-r--r--filesharing/simple/controlcenter.ui2
-rw-r--r--filesharing/simple/fileshare.cpp1
-rw-r--r--filesharing/simple/fileshare.desktop2
-rw-r--r--knewsticker/knewsticker-standalone.desktop1
-rw-r--r--kopete/kopete/chatwindow/chatmessagepart.cpp55
-rw-r--r--kopete/kopete/chatwindow/chatmessagepart.h1
-rw-r--r--kopete/kopete/config/appearance/Makefile.am8
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig.cpp18
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig.h1
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig_emoticons.ui11
-rw-r--r--kopete/kopete/main.cpp3
-rw-r--r--kopete/libkopete/private/kopeteemoticons.cpp7
-rw-r--r--kopete/libkopete/private/kopeteemoticons.h6
-rwxr-xr-xkopete/plugins/latex/kopete_latexconvert.sh8
-rw-r--r--kopete/plugins/nowlistening/Makefile.am4
-rw-r--r--kopete/plugins/nowlistening/nlxmms.cpp11
-rw-r--r--kopete/plugins/nowlistening/nlxmms.h4
-rw-r--r--kopete/plugins/translator/translatorlanguages.cpp40
-rw-r--r--kopete/plugins/translator/translatorplugin.cpp10
-rw-r--r--kopete/protocols/configure.in.in16
-rw-r--r--kopete/protocols/gadu/libgadu/common.c153
-rw-r--r--kopete/protocols/gadu/libgadu/events.c152
-rw-r--r--kopete/protocols/gadu/libgadu/http.c36
-rw-r--r--kopete/protocols/gadu/libgadu/pubdir.c98
-rw-r--r--kopete/protocols/groupwise/libgroupwise/rtf.cc2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/rtf.ll2
-rw-r--r--kopete/protocols/oscar/liboscar/rtf.cc2
-rw-r--r--kopete/protocols/oscar/liboscar/rtf.ll2
-rw-r--r--kopete/protocols/yahoo/libkyahoo/libyahoo.c2
-rw-r--r--kppp/connect.cpp1
-rw-r--r--kppp/devices.h61
-rw-r--r--kppp/logview/kppplogview.desktop1
-rw-r--r--kppp/opener.cpp2
-rw-r--r--kppp/ppplog.cpp3
-rw-r--r--kppp/pppstats.cpp5
-rw-r--r--krdc/krdc.cpp30
-rw-r--r--krdc/kremoteview.h5
-rw-r--r--krdc/main.cpp6
-rw-r--r--krdc/rdp/krdpview.cpp24
-rw-r--r--krdc/rdp/krdpview.h1
-rw-r--r--krdc/rdp/rdphostpref.cpp18
-rw-r--r--krdc/rdp/rdpprefs.ui7
-rw-r--r--krdc/rdp/rdpprefs.ui.h16
-rw-r--r--krdc/vnc/kvncview.cpp7
-rw-r--r--krdc/vnc/kvncview.h1
-rw-r--r--krfb/kcm_krfb/kcmkrfb.desktop2
-rw-r--r--krfb/krfb/krfb.desktop2
-rw-r--r--krfb/krfb/rfbcontroller.cc8
-rw-r--r--krfb/libvncserver/rfb.h2
-rw-r--r--ksirc/KSPrefs/page_generalbase.ui2
-rwxr-xr-xksirc/dsirc4
-rw-r--r--ktalkd/configure.in.in3
-rw-r--r--wifi/kwifimanager.desktop2
55 files changed, 556 insertions, 322 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.desktop b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.desktop
index f180d216..385a8636 100644
--- a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.desktop
+++ b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.desktop
@@ -11,7 +11,7 @@ X-KDE-SubstituteUID=false
X-KDE-HasReadOnlyMode=true
X-KDE-RootOnly=true
X-KDE-ParentApp=kcontrol
-Categories=Qt;KDE;X-KDE-settings-network;Settings;
+Categories=Qt;KDE;X-KDE-settings-network;
OnlyShowIn=KDE;
Comment=A module to configure shares for Microsoft Windows
diff --git a/filesharing/advanced/kcm_sambaconf/sambashare.cpp b/filesharing/advanced/kcm_sambaconf/sambashare.cpp
index b30d7db7..6627d761 100644
--- a/filesharing/advanced/kcm_sambaconf/sambashare.cpp
+++ b/filesharing/advanced/kcm_sambaconf/sambashare.cpp
@@ -128,6 +128,11 @@ QString SambaShare::getGlobalValue(const QString & name, bool defaultValue)
**/
QString SambaShare::getSynonym(const QString & name) const
{
+
+ // idmap config is an exception and shouldn't be set to lower
+ QString sname = name.left(12).stripWhiteSpace();
+ if ( sname == "idmap config" ) return name;
+
QString lname = name.lower().stripWhiteSpace();
if (lname == "browsable") return "browseable";
diff --git a/filesharing/simple/controlcenter.ui b/filesharing/simple/controlcenter.ui
index eea9166e..5c635392 100644
--- a/filesharing/simple/controlcenter.ui
+++ b/filesharing/simple/controlcenter.ui
@@ -24,7 +24,7 @@
<cstring>infoLbl</cstring>
</property>
<property name="margin">
- <number>11</number>
+ <number>5</number>
</property>
<property name="text">
<string>SMB and NFS servers are not installed on this machine, to enable this module the servers must be installed.</string>
diff --git a/filesharing/simple/fileshare.cpp b/filesharing/simple/fileshare.cpp
index a0c5bb06..a92f1f67 100644
--- a/filesharing/simple/fileshare.cpp
+++ b/filesharing/simple/fileshare.cpp
@@ -87,6 +87,7 @@ KFileShareConfig::KFileShareConfig(QWidget *parent, const char *name, const QStr
if ( nfsExec.isEmpty() && sambaExec.isEmpty())
{
+ QMessageBox::critical( 0, "File Sharing", QString("SMB and NFS servers are not installed on this machine, to enable this module the servers must be installed."));
m_ccgui->shareGrp->setDisabled(true);
m_ccgui->sharedFoldersGroupBox->setDisabled(true);
}
diff --git a/filesharing/simple/fileshare.desktop b/filesharing/simple/fileshare.desktop
index 6ed8dd8b..95913427 100644
--- a/filesharing/simple/fileshare.desktop
+++ b/filesharing/simple/fileshare.desktop
@@ -166,4 +166,4 @@ Keywords[tr]=Paylaş
Keywords[uk]=Спільний ресурс
Keywords[zh_CN]=Share,共享
-Categories=Qt;KDE;X-KDE-settings-network;Settings;
+Categories=Qt;KDE;X-KDE-settings-network;
diff --git a/knewsticker/knewsticker-standalone.desktop b/knewsticker/knewsticker-standalone.desktop
index d31a44b1..b164e525 100644
--- a/knewsticker/knewsticker-standalone.desktop
+++ b/knewsticker/knewsticker-standalone.desktop
@@ -93,3 +93,4 @@ Terminal=false
X-KDE-StartupNotify=true
X-DCOP-ServiceType=Unique
Categories=Qt;KDE;Network;X-KDE-More;News;
+NoDisplay=true
diff --git a/kopete/kopete/chatwindow/chatmessagepart.cpp b/kopete/kopete/chatwindow/chatmessagepart.cpp
index 36523dac..3cf70b8a 100644
--- a/kopete/kopete/chatwindow/chatmessagepart.cpp
+++ b/kopete/kopete/chatwindow/chatmessagepart.cpp
@@ -43,6 +43,7 @@
#include <dom/html_base.h>
#include <dom/html_document.h>
#include <dom/html_inline.h>
+#include <qurloperator.h>
// KDE includes
@@ -60,8 +61,10 @@
#include <ktempfile.h>
#include <kurldrag.h>
#include <kio/netaccess.h>
+#include <kio/job.h>
#include <kstandarddirs.h>
#include <kiconloader.h>
+#include <kinputdialog.h>
// Kopete includes
#include "chatmemberslistwidget.h"
@@ -144,6 +147,7 @@ public:
KAction *printAction;
KAction *closeAction;
KAction *copyURLAction;
+ KAction *importEmoticon;
ChatWindowStyle *currentChatStyle;
Kopete::Contact *latestContact;
@@ -259,6 +263,7 @@ ChatMessagePart::ChatMessagePart( Kopete::ChatSession *mgr, QWidget *parent, con
d->saveAction = KStdAction::saveAs( this, SLOT(save()), actionCollection() );
d->printAction = KStdAction::print( this, SLOT(print()),actionCollection() );
d->closeAction = KStdAction::close( this, SLOT(slotCloseView()),actionCollection() );
+ d->importEmoticon = new KAction( i18n( "Import Emoticon"), QString::fromLatin1( "importemot" ), 0, this, SLOT( slotImportEmoticon() ), actionCollection() );
d->copyURLAction = new KAction( i18n( "Copy Link Address" ), QString::fromLatin1( "editcopy" ), 0, this, SLOT( slotCopyURL() ), actionCollection() );
// read formatting override flags
@@ -281,6 +286,53 @@ void ChatMessagePart::slotScrollingTo( int /*x*/, int y )
d->scrollPressed = true;
}
+void ChatMessagePart::slotImportEmoticon()
+{
+ QString emoticonString = KInputDialog::getText( i18n("Import Emoticon"),
+ i18n("<qt><img src=\"%1\"><br>Insert the string for the emoticon<br>separated by space if you want multiple strings</qt>").arg( d->activeElement.getAttribute("src").string() ) );
+ if (emoticonString.isNull() )
+ return;
+
+ QString emo = d->activeElement.getAttribute("src").string();
+ QString themeName = KopetePrefs::prefs()->iconTheme();
+
+ KIO::copy(emo, KGlobal::dirs()->saveLocation( "emoticons", themeName, false ));
+
+ QFile *fp = new QFile(KGlobal::dirs()->saveLocation( "emoticons", themeName, false ) + "/emoticons.xml");
+
+ QDomDocument themeXml;
+
+ if(!fp->exists() || !fp->open( IO_ReadOnly ) || !themeXml.setContent(fp))
+ return;
+
+ fp->close();
+
+ QDomNode lc = themeXml.lastChild();
+ if(lc.isNull())
+ return;
+
+ QDomElement emoticon = themeXml.createElement("emoticon");
+ emoticon.setAttribute("file", QFileInfo(emo).baseName());
+ lc.appendChild(emoticon);
+ QStringList splitted = QStringList::split(" ", emoticonString);
+ QStringList::const_iterator constIterator;
+ for(constIterator = splitted.begin(); constIterator != splitted.end(); constIterator++)
+ {
+ QDomElement emotext = themeXml.createElement("string");
+ QDomText txt = themeXml.createTextNode((*constIterator).stripWhiteSpace());
+ emotext.appendChild(txt);
+ emoticon.appendChild(emotext);
+ }
+
+ if(!fp->open( IO_WriteOnly ))
+ return;
+
+ QTextStream emoStream(fp);
+ emoStream << themeXml.toString(4);
+ fp->close();
+ QTimer::singleShot( 1500, Kopete::Emoticons::self(), SLOT( reload() ) );
+}
+
void ChatMessagePart::save()
{
KFileDialog dlg( QString::null, QString::fromLatin1( "text/html text/plain" ), view(), "fileSaveDialog", false );
@@ -680,11 +732,12 @@ void ChatMessagePart::slotRightClick( const QString &, const QPoint &point )
d->copyURLAction->plug( chatWindowPopup );
chatWindowPopup->insertSeparator();
}
-
+ kdDebug() << "ChatMessagePart::slotRightClick(): " << d->activeElement.tagName().lower() << endl;
d->copyAction->setEnabled( hasSelection() );
d->copyAction->plug( chatWindowPopup );
d->saveAction->plug( chatWindowPopup );
d->printAction->plug( chatWindowPopup );
+ if( d->activeElement.tagName().lower() == "img" ) d->importEmoticon->plug( chatWindowPopup );
chatWindowPopup->insertSeparator();
d->closeAction->plug( chatWindowPopup );
diff --git a/kopete/kopete/chatwindow/chatmessagepart.h b/kopete/kopete/chatwindow/chatmessagepart.h
index ba92b95f..ad14d3e3 100644
--- a/kopete/kopete/chatwindow/chatmessagepart.h
+++ b/kopete/kopete/chatwindow/chatmessagepart.h
@@ -148,6 +148,7 @@ private slots:
void slotCopyURL();
void slotCloseView( bool force = false );
+ void slotImportEmoticon();
/**
* Do the actual style change.
diff --git a/kopete/kopete/config/appearance/Makefile.am b/kopete/kopete/config/appearance/Makefile.am
index 7e7fc8ca..f349297c 100644
--- a/kopete/kopete/config/appearance/Makefile.am
+++ b/kopete/kopete/config/appearance/Makefile.am
@@ -4,9 +4,10 @@ AM_CPPFLAGS = $(KOPETE_INCLUDES) -I$(top_srcdir)/kopete/libkopete/private \
kde_module_LTLIBRARIES = kcm_kopete_appearanceconfig.la
-kcm_kopete_appearanceconfig_la_SOURCES = appearanceconfig_emoticons.ui \
- appearanceconfig_colors.ui appearanceconfig_chatwindow.ui appearanceconfig_contactlist.ui \
- appearanceconfig.cpp tooltipeditwidget.ui tooltipeditdialog.cpp
+kcm_kopete_appearanceconfig_la_SOURCES = appearanceconfig.cpp \
+ appearanceconfig_chatwindow.ui appearanceconfig_colors.ui appearanceconfig_contactlist.ui \
+ appearanceconfig_emoticons.ui emoticonseditdialog.cpp emoticonseditwidget.ui tooltipeditdialog.cpp \
+ tooltipeditwidget.ui
kcm_kopete_appearanceconfig_la_LDFLAGS = -module -no-undefined $(KDE_PLUGIN) \
$(all_libraries)
@@ -18,3 +19,4 @@ service_DATA = kopete_appearanceconfig.desktop
servicedir = $(kde_servicesdir)
# vim: set noet:
+noinst_HEADERS = emoticonseditdialog.h
diff --git a/kopete/kopete/config/appearance/appearanceconfig.cpp b/kopete/kopete/config/appearance/appearanceconfig.cpp
index e3867d41..d83b0801 100644
--- a/kopete/kopete/config/appearance/appearanceconfig.cpp
+++ b/kopete/kopete/config/appearance/appearanceconfig.cpp
@@ -27,6 +27,7 @@
#include "appearanceconfig_contactlist.h"
#include "tooltipeditdialog.h"
+#include "emoticonseditdialog.h"
#include <qcheckbox.h>
#include <qdir.h>
@@ -204,6 +205,8 @@ AppearanceConfig::AppearanceConfig(QWidget *parent, const char* /*name*/, const
this, SLOT(slotGetEmoticonThemes()));
connect(d->mPrfsEmoticons->btnRemoveTheme, SIGNAL(clicked()),
this, SLOT(removeSelectedEmoticonTheme()));
+ connect(d->mPrfsEmoticons->btnEditThemes, SIGNAL(clicked()),
+ this, SLOT(editSelectedEmoticonTheme()));
d->mAppearanceTabCtl->addTab(d->mPrfsEmoticons, i18n("&Emoticons"));
@@ -866,5 +869,20 @@ void AppearanceConfig::slotEditTooltips()
delete dlg;
}
+void AppearanceConfig::editSelectedEmoticonTheme()
+{
+ QListBoxItem *selected = d->mPrfsEmoticons->icon_theme_list->selectedItem();
+ if(selected==0)
+ return;
+
+ QString themeName = selected->text();
+
+ EmoticonsEditDialog *dlg = new EmoticonsEditDialog(this, themeName);
+ dlg->exec();
+ delete dlg;
+
+ updateEmoticonlist();
+}
+
#include "appearanceconfig.moc"
// vim: set noet ts=4 sts=4 sw=4:
diff --git a/kopete/kopete/config/appearance/appearanceconfig.h b/kopete/kopete/config/appearance/appearanceconfig.h
index 22a23024..747117c6 100644
--- a/kopete/kopete/config/appearance/appearanceconfig.h
+++ b/kopete/kopete/config/appearance/appearanceconfig.h
@@ -57,6 +57,7 @@ private slots:
void slotGetChatStyles();
void slotLoadChatStyles();
void updateEmoticonsButton(bool);
+ void editSelectedEmoticonTheme();
private:
void updateEmoticonlist();
void createPreviewChatSession();
diff --git a/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui b/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
index 8649e4c2..01652e9f 100644
--- a/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
+++ b/kopete/kopete/config/appearance/appearanceconfig_emoticons.ui
@@ -111,6 +111,17 @@
</widget>
<widget class="QPushButton">
<property name="name">
+ <cstring>btnEditThemes</cstring>
+ </property>
+ <property name="text">
+ <string>&amp;Edit Theme...</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Edit the selected emoticons theme</string>
+ </property>
+ </widget>
+ <widget class="QPushButton">
+ <property name="name">
<cstring>btnInstallTheme</cstring>
</property>
<property name="text">
diff --git a/kopete/kopete/main.cpp b/kopete/kopete/main.cpp
index d428c1bc..187dc8de 100644
--- a/kopete/kopete/main.cpp
+++ b/kopete/kopete/main.cpp
@@ -51,9 +51,10 @@ int main( int argc, char *argv[] )
{
KAboutData aboutData( "kopete", I18N_NOOP("Kopete"),
KOPETE_VERSION_STRING, description, KAboutData::License_GPL,
- I18N_NOOP("(c) 2001-2004, Duncan Mac-Vicar Prett\n(c) 2002-2005, Kopete Development Team"), "kopete-devel@kde.org", "http://kopete.kde.org");
+ I18N_NOOP("(c) 2009-2010, Timothy Pearson\n(c) 2001-2004, Duncan Mac-Vicar Prett\n(c) 2002-2005, Kopete Development Team"), "kopete-devel@kde.org", "http://kopete.kde.org");
aboutData.addAuthor ( "Duncan Mac-Vicar Prett", I18N_NOOP("Developer and Project founder"), "duncan@kde.org", "http://www.mac-vicar.org/~duncan" );
+ aboutData.addAuthor ( "Timothy Pearson", I18N_NOOP("Developer, maintainer"), "kb9vqf@pearsoncomputing.net" );
aboutData.addAuthor ( "Andre Duffeck", I18N_NOOP("Developer, Yahoo plugin maintainer"), "andre@duffeck.de" );
aboutData.addAuthor ( "Andy Goossens", I18N_NOOP("Developer"), "andygoossens@telenet.be" );
aboutData.addAuthor ( "Chetan Reddy", I18N_NOOP("Developer, Yahoo"), "chetan13@gmail.com" );
diff --git a/kopete/libkopete/private/kopeteemoticons.cpp b/kopete/libkopete/private/kopeteemoticons.cpp
index 87da4cf7..0b234deb 100644
--- a/kopete/libkopete/private/kopeteemoticons.cpp
+++ b/kopete/libkopete/private/kopeteemoticons.cpp
@@ -549,6 +549,13 @@ QString Emoticons::parse( const QString &message, ParseMode mode )
return result;
}
+void Emoticons::reload()
+{
+ d->emoticonAndPicList.clear();
+ d->emoticonMap.clear();
+ initEmoticons( KopetePrefs::prefs()->iconTheme() );
+}
+
} //END namesapce Kopete
#include "kopeteemoticons.moc"
diff --git a/kopete/libkopete/private/kopeteemoticons.h b/kopete/libkopete/private/kopeteemoticons.h
index 848185e6..84fd305a 100644
--- a/kopete/libkopete/private/kopeteemoticons.h
+++ b/kopete/libkopete/private/kopeteemoticons.h
@@ -131,6 +131,12 @@ public:
* (only one emoticon per image)
*/
QMap<QString, QStringList> emoticonAndPicList();
+
+public slots:
+ /**
+ * reload the current emoticons theme
+ */
+ void reload();
private:
diff --git a/kopete/plugins/latex/kopete_latexconvert.sh b/kopete/plugins/latex/kopete_latexconvert.sh
index b7f92263..298ebbde 100755
--- a/kopete/plugins/latex/kopete_latexconvert.sh
+++ b/kopete/plugins/latex/kopete_latexconvert.sh
@@ -94,9 +94,7 @@ done
#
if test -n "`type -p mktemp`" ; then
- tmpdir="`mktemp /tmp/tex2imXXXXXX`"
- rm $tmpdir
- mkdir $tmpdir
+ tmpdir="`mktemp -d /tmp/tex2imXXXXXX`"
else
tmpdir=/tmp/tex2im$$
if [ -e $tmpdir ] ; then
@@ -171,7 +169,7 @@ fi
#if [ -e "$infile" ]; then
# cat $infile >> $tmpdir/out.tex
#else
- echo "$infile" >> $tmpdir/out.tex
+ printf '%s' "$infile" >> $tmpdir/out.tex
#fi
if [ $noformula -eq 1 ]; then
@@ -222,7 +220,7 @@ else
mv $tmpdir/out.$format.0 $outfile
fi
-let OPTIND=$OPTIND+1
+OPTIND=$((${OPTIND}+1))
outfile=""
done
diff --git a/kopete/plugins/nowlistening/Makefile.am b/kopete/plugins/nowlistening/Makefile.am
index a9357d5f..dbbeec1a 100644
--- a/kopete/plugins/nowlistening/Makefile.am
+++ b/kopete/plugins/nowlistening/Makefile.am
@@ -5,8 +5,8 @@ AM_CPPFLAGS = $(KOPETE_INCLUDES) $(XMMS_INCLUDES) $(all_includes)
kde_module_LTLIBRARIES = kopete_nowlistening.la kcm_kopete_nowlistening.la
kopete_nowlistening_la_SOURCES = nowlisteningconfig.kcfgc nowlisteningplugin.cpp nlkscd.cpp nlnoatun.cpp nlxmms.cpp nowlisteningguiclient.cpp nljuk.cpp nlamarok.cpp nlkaffeine.cpp
-kopete_nowlistening_la_LDFLAGS = -module $(KDE_PLUGIN) $(XMMS_LDFLAGS) $(all_libraries)
-kopete_nowlistening_la_LIBADD = ../../libkopete/libkopete.la $(XMMS_LIBS)
+kopete_nowlistening_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
+kopete_nowlistening_la_LIBADD = ../../libkopete/libkopete.la
kcm_kopete_nowlistening_la_SOURCES = nowlisteningprefs.ui nowlisteningpreferences.cpp nowlisteningconfig.kcfgc
kcm_kopete_nowlistening_la_LDFLAGS = -module -no-undefined $(KDE_PLUGIN) $(all_libraries)
diff --git a/kopete/plugins/nowlistening/nlxmms.cpp b/kopete/plugins/nowlistening/nlxmms.cpp
index f0a9f47a..a2d3637d 100644
--- a/kopete/plugins/nowlistening/nlxmms.cpp
+++ b/kopete/plugins/nowlistening/nlxmms.cpp
@@ -24,6 +24,7 @@
#ifdef HAVE_XMMS
+#include <dlfcn.h>
#include <kdebug.h>
#include <xmmsctrl.h> // need to fix Makefile.am for this?
#include "nlmediaplayer.h"
@@ -32,13 +33,21 @@
NLXmms::NLXmms() : NLMediaPlayer()
{
m_name = "Xmms";
+
+ xmmslib = dlopen("libxmms.so.1", RTLD_LAZY | RTLD_GLOBAL);
}
+NLXmms::~NLXmms()
+{
+ if (xmmslib)
+ dlclose(xmmslib);
+}
void NLXmms::update()
{
//look for running xmms
- if ( xmms_remote_get_version( 0 ) )
+ if ( xmmslib &&
+ xmms_remote_get_version( 0 ) )
{
QString newTrack;
// see if it's playing
diff --git a/kopete/plugins/nowlistening/nlxmms.h b/kopete/plugins/nowlistening/nlxmms.h
index 14c74ea8..d64fc08f 100644
--- a/kopete/plugins/nowlistening/nlxmms.h
+++ b/kopete/plugins/nowlistening/nlxmms.h
@@ -31,7 +31,11 @@ class NLXmms : public NLMediaPlayer
{
public:
NLXmms();
+ ~NLXmms();
virtual void update();
+
+ private:
+ void *xmmslib;
};
#endif
diff --git a/kopete/plugins/translator/translatorlanguages.cpp b/kopete/plugins/translator/translatorlanguages.cpp
index 4e59fa79..d0a1e0a0 100644
--- a/kopete/plugins/translator/translatorlanguages.cpp
+++ b/kopete/plugins/translator/translatorlanguages.cpp
@@ -29,7 +29,7 @@ TranslatorLanguages::TranslatorLanguages()
{
m_lc = 0;
m_sc = 0;
- m_services.insert("babelfish", "BabelFish");
+// m_services.insert("babelfish", "BabelFish");
m_services.insert("google", "Google");
m_langs.insert("null", i18n("Unknown"));
@@ -45,29 +45,29 @@ TranslatorLanguages::TranslatorLanguages()
m_langs.insert("es", i18n("Spanish"));
/* English to .. */
- m_supported["babelfish"].append("en_zh");
- m_supported["babelfish"].append("en_fr");
- m_supported["babelfish"].append("en_de");
- m_supported["babelfish"].append("en_it");
- m_supported["babelfish"].append("en_ja");
- m_supported["babelfish"].append("en_ko");
- m_supported["babelfish"].append("en_pt");
- m_supported["babelfish"].append("en_es");
+// m_supported["babelfish"].append("en_zh");
+// m_supported["babelfish"].append("en_fr");
+// m_supported["babelfish"].append("en_de");
+// m_supported["babelfish"].append("en_it");
+// m_supported["babelfish"].append("en_ja");
+// m_supported["babelfish"].append("en_ko");
+// m_supported["babelfish"].append("en_pt");
+// m_supported["babelfish"].append("en_es");
/* Chinese to .. */
- m_supported["babelfish"].append("zh_en");
+// m_supported["babelfish"].append("zh_en");
/* French to ... */
- m_supported["babelfish"].append("fr_en");
- m_supported["babelfish"].append("fr_de");
+// m_supported["babelfish"].append("fr_en");
+// m_supported["babelfish"].append("fr_de");
/* German to ... */
- m_supported["babelfish"].append("de_en");
- m_supported["babelfish"].append("de_fr");
+// m_supported["babelfish"].append("de_en");
+// m_supported["babelfish"].append("de_fr");
- m_supported["babelfish"].append("it_en");
- m_supported["babelfish"].append("ja_en");
- m_supported["babelfish"].append("ko_en");
- m_supported["babelfish"].append("pt_en");
- m_supported["babelfish"].append("ru_en");
- m_supported["babelfish"].append("es_en");
+// m_supported["babelfish"].append("it_en");
+// m_supported["babelfish"].append("ja_en");
+// m_supported["babelfish"].append("ko_en");
+// m_supported["babelfish"].append("pt_en");
+// m_supported["babelfish"].append("ru_en");
+// m_supported["babelfish"].append("es_en");
/* Google Service */
m_supported["google"].append("en_de");
diff --git a/kopete/plugins/translator/translatorplugin.cpp b/kopete/plugins/translator/translatorplugin.cpp
index 694f0bd1..4ac8367f 100644
--- a/kopete/plugins/translator/translatorplugin.cpp
+++ b/kopete/plugins/translator/translatorplugin.cpp
@@ -16,6 +16,8 @@
* (at your option) any later version. *
* *
*************************************************************************
+ Patched by Francesco Rossi <redsh@email.it> in order to support new
+ google translation page layout (13-sept-2007)
*/
#include <qapplication.h>
@@ -290,7 +292,8 @@ QString TranslatorPlugin::googleTranslateMessage( const QString &msg, const QStr
// kdDebug( 14308 ) << k_funcinfo << "Google response:"<< endl << data << endl;
- QRegExp re( "<textarea name=q rows=5 cols=45 wrap=PHYSICAL>(.*)</textarea>" );
+// QRegExp re( "<textarea name=q rows=5 cols=45 wrap=PHYSICAL>(.*)</textarea>" );
+ QRegExp re( "<textarea name=utrans wrap=PHYSICAL dilr=ltr rows=5 id=suggestion>(.*)</textarea>");
re.setMinimal( true );
re.search( data );
@@ -325,7 +328,8 @@ QString TranslatorPlugin::babelTranslateMessage( const QString &msg, const QStri
//kdDebug( 14308 ) << k_funcinfo << "Babelfish response: " << endl << data << endl;
- QRegExp re( "<Div style=padding:10px; lang=..>(.*)</div" );
+// QRegExp re( "<Div style=padding:10px; lang=..>(.*)</div" );
+ QRegExp re( "<div style=padding:10px;>(.*)</div>" );
re.setMinimal( true );
re.search( data );
@@ -360,7 +364,7 @@ void TranslatorPlugin::sendTranslation( Kopete::Message &msg, const QString &tra
msg.setBody( translated, msg.format() );
break;
case ShowOriginal:
- msg.setBody( i18n( "%2\nAuto Translated: %1" ).arg( translated, msg.plainBody() ), msg.format() );
+ msg.setBody( i18n( "%2 \nAuto Translated: \n%1" ).arg( translated, msg.plainBody() ), msg.format() );
break;
case ShowDialog:
{
diff --git a/kopete/protocols/configure.in.in b/kopete/protocols/configure.in.in
index bc946d92..05da3ea5 100644
--- a/kopete/protocols/configure.in.in
+++ b/kopete/protocols/configure.in.in
@@ -40,8 +40,20 @@ if test "x$with_external_libgadu" != xno; then
int main()
{
#if defined __GG_LIBGADU_HAVE_PTHREAD && defined GG_LOGIN60
- int maj, min, date;
- sscanf( gg_libgadu_version(), "%u.%u.%u", &maj,&min,&date );
+ int maj, min, date, items;
+ const char *libgadu_version = gg_libgadu_version();
+
+ items = sscanf( libgadu_version, "%u.%u.%u", &maj,&min,&date );
+
+ if ( items != 3 ) { /* version in YYYYDDMM format only */
+ sscanf( libgadu_version, "%u", &date );
+
+ if ( date < 20040520 )
+ return 1;
+ else
+ return 0;
+ }
+
if ( maj != 1 ) {
return 1;
}
diff --git a/kopete/protocols/gadu/libgadu/common.c b/kopete/protocols/gadu/libgadu/common.c
index 2e835fca..01be6f5a 100644
--- a/kopete/protocols/gadu/libgadu/common.c
+++ b/kopete/protocols/gadu/libgadu/common.c
@@ -2,7 +2,7 @@
/*
* (C) Copyright 2001-2002 Wojtek Kaniewski <wojtekka@irc.pl>
- * Robert J. Wony <speedy@ziew.org>
+ * Robert J. Wo�ny <speedy@ziew.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License Version
@@ -44,12 +44,12 @@ FILE *gg_debug_file = NULL;
#ifndef GG_DEBUG_DISABLE
/*
- * gg_debug() // funkcja wewntrzna
+ * gg_debug() // funkcja wewn�trzna
*
- * wywietla komunikat o danym poziomie, o ile uytkownik sobie tego yczy.
+ * wy�wietla komunikat o danym poziomie, o ile u�ytkownik sobie tego �yczy.
*
- * - level - poziom wiadomoci
- * - format... - tre wiadomoci (kompatybilna z printf())
+ * - level - poziom wiadomo�ci
+ * - format... - tre�� wiadomo�ci (kompatybilna z printf())
*/
void gg_debug(int level, const char *format, ...)
{
@@ -79,15 +79,15 @@ cleanup:
/*
* gg_vsaprintf() // funkcja pomocnicza
*
- * robi dokadnie to samo, co vsprintf(), tyle e alokuje sobie wczeniej
- * miejsce na dane. powinno dziaa na tych maszynach, ktre maj funkcj
- * vsnprintf() zgodn z C99, jak i na wczeniejszych.
+ * robi dok�adnie to samo, co vsprintf(), tyle �e alokuje sobie wcze�niej
+ * miejsce na dane. powinno dzia�a� na tych maszynach, kt�re maj� funkcj�
+ * vsnprintf() zgodn� z C99, jak i na wcze�niejszych.
*
- * - format - opis wywietlanego tekstu jak dla printf()
- * - ap - lista argumentw dla printf()
+ * - format - opis wy�wietlanego tekstu jak dla printf()
+ * - ap - lista argument�w dla printf()
*
- * zaalokowany bufor, ktry naley pniej zwolni, lub NULL
- * jeli nie udao si wykona zadania.
+ * zaalokowany bufor, kt�ry nale�y p��niej zwolni�, lub NULL
+ * je�li nie uda�o si� wykona� zadania.
*/
char *gg_vsaprintf(const char *format, va_list ap)
{
@@ -129,8 +129,8 @@ char *gg_vsaprintf(const char *format, va_list ap)
{
char tmp[2];
- /* libce Solarisa przy buforze NULL zawsze zwracaj -1, wic
- * musimy poda co istniejcego jako cel printf()owania. */
+ /* libce Solarisa przy buforze NULL zawsze zwracaj� -1, wi�c
+ * musimy poda� co� istniej�cego jako cel printf()owania. */
size = vsnprintf(tmp, sizeof(tmp), format, ap);
if (!(buf = malloc(size + 1)))
return NULL;
@@ -157,14 +157,14 @@ char *gg_vsaprintf(const char *format, va_list ap)
/*
* gg_saprintf() // funkcja pomocnicza
*
- * robi dokadnie to samo, co sprintf(), tyle e alokuje sobie wczeniej
- * miejsce na dane. powinno dziaa na tych maszynach, ktre maj funkcj
- * vsnprintf() zgodn z C99, jak i na wczeniejszych.
+ * robi dok�adnie to samo, co sprintf(), tyle �e alokuje sobie wcze�niej
+ * miejsce na dane. powinno dzia�a� na tych maszynach, kt�re maj� funkcj�
+ * vsnprintf() zgodn� z C99, jak i na wcze�niejszych.
*
- * - format... - tre taka sama jak w funkcji printf()
+ * - format... - tre�� taka sama jak w funkcji printf()
*
- * zaalokowany bufor, ktry naley pniej zwolni, lub NULL
- * jeli nie udao si wykona zadania.
+ * zaalokowany bufor, kt�ry nale�y p��niej zwolni�, lub NULL
+ * je�li nie uda�o si� wykona� zadania.
*/
char *gg_saprintf(const char *format, ...)
{
@@ -181,19 +181,20 @@ char *gg_saprintf(const char *format, ...)
/*
* gg_get_line() // funkcja pomocnicza
*
- * podaje kolejn lini z bufora tekstowego. niszczy go bezpowrotnie, dzielc
- * na kolejne stringi. zdarza si, nie ma potrzeby pisania funkcji dublujcej
- * bufor eby tylko mie nieruszone dane wejciowe, skoro i tak nie bd nam
- * poniej potrzebne. obcina `\r\n'.
+ * podaje kolejn� lini� z bufora tekstowego. niszczy go bezpowrotnie, dziel�c
+ * na kolejne stringi. zdarza si�, nie ma potrzeby pisania funkcji dubluj�cej
+ * bufor �eby tylko mie� nieruszone dane wej�ciowe, skoro i tak nie b�d� nam
+ * po�niej potrzebne. obcina `\r\n'.
*
- * - ptr - wskanik do zmiennej, ktra przechowuje aktualn pozycj
+ * - ptr - wska�nik do zmiennej, kt�ra przechowuje aktualn� pozycj�
* w przemiatanym buforze
*
- * wskanik do kolejnej linii tekstu lub NULL, jeli to ju koniec bufora.
+ * wska�nik do kolejnej linii tekstu lub NULL, je�li to ju� koniec bufora.
*/
char *gg_get_line(char **ptr)
{
- char *foo, *res;
+ const char *foo;
+ char *res;
if (!ptr || !*ptr || !strcmp(*ptr, ""))
return NULL;
@@ -204,7 +205,6 @@ char *gg_get_line(char **ptr)
*ptr += strlen(*ptr);
else {
*ptr = foo + 1;
- *foo = 0;
if (strlen(res) > 1 && res[strlen(res) - 1] == '\r')
res[strlen(res) - 1] = 0;
}
@@ -215,15 +215,15 @@ char *gg_get_line(char **ptr)
/*
* gg_connect() // funkcja pomocnicza
*
- * czy si z serwerem. pierwszy argument jest typu (void *), eby nie
- * musie niczego inkludowa w libgadu.h i nie psu jaki gupich zalenoci
+ * ��czy si� z serwerem. pierwszy argument jest typu (void *), �eby nie
+ * musie� niczego inkludowa� w libgadu.h i nie psu� jaki� g�upich zale�no�ci
* na dziwnych systemach.
*
* - addr - adres serwera (struct in_addr *)
* - port - port serwera
- * - async - asynchroniczne poczenie
+ * - async - asynchroniczne po��czenie
*
- * deskryptor gniazda lub -1 w przypadku bdu (kod bdu w zmiennej errno).
+ * deskryptor gniazda lub -1 w przypadku b��du (kod b��du w zmiennej errno).
*/
int gg_connect(void *addr, int port, int async)
{
@@ -288,13 +288,13 @@ int gg_connect(void *addr, int port, int async)
/*
* gg_read_line() // funkcja pomocnicza
*
- * czyta jedn lini tekstu z gniazda.
+ * czyta jedn� lini� tekstu z gniazda.
*
* - sock - deskryptor gniazda
- * - buf - wskanik do bufora
- * - length - dugo bufora
+ * - buf - wska�nik do bufora
+ * - length - d�ugo�� bufora
*
- * jeli trafi na bd odczytu lub podano nieprawidowe parametry, zwraca NULL.
+ * je�li trafi na b��d odczytu lub podano nieprawid�owe parametry, zwraca NULL.
* inaczej zwraca buf.
*/
char *gg_read_line(int sock, char *buf, int length)
@@ -330,9 +330,9 @@ char *gg_read_line(int sock, char *buf, int length)
/*
* gg_chomp() // funkcja pomocnicza
*
- * ucina "\r\n" lub "\n" z koca linii.
+ * ucina "\r\n" lub "\n" z ko�ca linii.
*
- * - line - linia do przycicia
+ * - line - linia do przyci�cia
*/
void gg_chomp(char *line)
{
@@ -350,15 +350,15 @@ void gg_chomp(char *line)
}
/*
- * gg_urlencode() // funkcja wewntrzna
+ * gg_urlencode() // funkcja wewn�trzna
*
- * zamienia podany tekst na cig znakw do formularza http. przydaje si
- * przy rnych usugach katalogu publicznego.
+ * zamienia podany tekst na ci�g znak�w do formularza http. przydaje si�
+ * przy r��nych us�ugach katalogu publicznego.
*
- * - str - cig znakw do zakodowania
+ * - str - ci�g znak�w do zakodowania
*
- * zaalokowany bufor, ktry naley pniej zwolni albo NULL
- * w przypadku bdu.
+ * zaalokowany bufor, kt�ry nale�y p��niej zwolni� albo NULL
+ * w przypadku b��du.
*/
char *gg_urlencode(const char *str)
{
@@ -397,14 +397,14 @@ char *gg_urlencode(const char *str)
}
/*
- * gg_http_hash() // funkcja wewntrzna
+ * gg_http_hash() // funkcja wewn�trzna
*
- * funkcja liczca hash dla adresu e-mail, hasa i paru innych.
+ * funkcja licz�ca hash dla adresu e-mail, has�a i paru innych.
*
- * - format... - format kolejnych parametrw ('s' jeli dany parametr jest
- * cigiem znakw lub 'u' jeli numerem GG)
+ * - format... - format kolejnych parametr�w ('s' je�li dany parametr jest
+ * ci�giem znak�w lub 'u' je�li numerem GG)
*
- * hash wykorzystywany przy rejestracji i wszelkich manipulacjach wasnego
+ * hash wykorzystywany przy rejestracji i wszelkich manipulacjach w�asnego
* wpisu w katalogu publicznym.
*/
int gg_http_hash(const char *format, ...)
@@ -441,12 +441,12 @@ int gg_http_hash(const char *format, ...)
/*
* gg_gethostbyname() // funkcja pomocnicza
*
- * odpowiednik gethostbyname() troszczcy si o wspbieno, gdy mamy do
- * dyspozycji funkcj gethostbyname_r().
+ * odpowiednik gethostbyname() troszcz�cy si� o wsp��bie�no��, gdy mamy do
+ * dyspozycji funkcj� gethostbyname_r().
*
* - hostname - nazwa serwera
*
- * zwraca wskanik na struktur in_addr, ktr naley zwolni.
+ * zwraca wska�nik na struktur� in_addr, kt�r� nale�y zwolni�.
*/
struct in_addr *gg_gethostbyname(const char *hostname)
{
@@ -540,20 +540,20 @@ struct gg_win32_thread *gg_win32_threads = 0;
/*
* gg_win32_thread_socket() // funkcja pomocnicza, tylko dla win32
*
- * zwraca deskryptor gniazda, ktre byo ostatnio tworzone dla wtku
+ * zwraca deskryptor gniazda, kt�re by�o ostatnio tworzone dla w�tku
* o podanym identyfikatorze.
*
- * jeli na win32 przy poczeniach synchronicznych zapamitamy w jakim
- * wtku uruchomilimy funkcj, ktra si z czymkolwiek czy, to z osobnego
- * wtku moemy anulowa poczenie poprzez gg_win32_thread_socket(watek, -1);
+ * je�li na win32 przy po��czeniach synchronicznych zapami�tamy w jakim
+ * w�tku uruchomili�my funkcj�, kt�ra si� z czymkolwiek ��czy, to z osobnego
+ * w�tku mo�emy anulowa� po��czenie poprzez gg_win32_thread_socket(watek, -1);
*
- * - thread_id - id wtku. jeli jest rwne 0, brany jest aktualny wtek,
- * jeli rwne -1, usuwa wpis o podanym sockecie.
- * - socket - deskryptor gniazda. jeli rwne 0, zwraca deskryptor gniazda
- * dla podanego wtku, jeli rwne -1, usuwa wpis, jeli co
- * innego, ustawia dla podanego wtku dany numer deskryptora.
+ * - thread_id - id w�tku. je�li jest r�wne 0, brany jest aktualny w�tek,
+ * je�li r�wne -1, usuwa wpis o podanym sockecie.
+ * - socket - deskryptor gniazda. je�li r�wne 0, zwraca deskryptor gniazda
+ * dla podanego w�tku, je�li r�wne -1, usuwa wpis, je�li co�
+ * innego, ustawia dla podanego w�tku dany numer deskryptora.
*
- * jeli socket jest rwne 0, zwraca deskryptor gniazda dla podanego wtku.
+ * je�li socket jest r�wne 0, zwraca deskryptor gniazda dla podanego w�tku.
*/
int gg_win32_thread_socket(int thread_id, int socket)
{
@@ -608,9 +608,9 @@ static char gg_base64_charset[] =
/*
* gg_base64_encode()
*
- * zapisuje cig znakw w base64.
+ * zapisuje ci�g znak�w w base64.
*
- * - buf - cig znakw.
+ * - buf - ci�g znak�w.
*
* zaalokowany bufor.
*/
@@ -665,14 +665,15 @@ char *gg_base64_encode(const char *buf)
/*
* gg_base64_decode()
*
- * dekoduje cig znakw z base64.
+ * dekoduje ci�g znak�w z base64.
*
- * - buf - cig znakw.
+ * - buf - ci�g znak�w.
*
* zaalokowany bufor.
*/
char *gg_base64_decode(const char *buf)
{
+ const char *foo2;
char *res, *save, *foo, val;
const char *end;
unsigned int index = 0;
@@ -692,8 +693,12 @@ char *gg_base64_decode(const char *buf)
buf++;
continue;
}
- if (!(foo = strchr(gg_base64_charset, *buf)))
+ if (!(foo2 = strchr(gg_base64_charset, *buf))) {
foo = gg_base64_charset;
+ }
+ else {
+ foo = foo2;
+ }
val = (int)(foo - gg_base64_charset);
buf++;
switch (index) {
@@ -721,11 +726,11 @@ char *gg_base64_decode(const char *buf)
}
/*
- * gg_proxy_auth() // funkcja wewntrzna
+ * gg_proxy_auth() // funkcja wewn�trzna
*
- * tworzy nagwek autoryzacji dla proxy.
+ * tworzy nag��wek autoryzacji dla proxy.
*
- * zaalokowany tekst lub NULL, jeli proxy nie jest wczone lub nie wymaga
+ * zaalokowany tekst lub NULL, je�li proxy nie jest w��czone lub nie wymaga
* autoryzacji.
*/
char *gg_proxy_auth()
@@ -764,7 +769,7 @@ static uint32_t gg_crc32_table[256];
static int gg_crc32_initialized = 0;
/*
- * gg_crc32_make_table() // funkcja wewntrzna
+ * gg_crc32_make_table() // funkcja wewn�trzna
*/
static void gg_crc32_make_table()
{
@@ -786,11 +791,11 @@ static void gg_crc32_make_table()
/*
* gg_crc32()
*
- * wyznacza sum kontroln CRC32 danego bloku danych.
+ * wyznacza sum� kontroln� CRC32 danego bloku danych.
*
- * - crc - suma kontrola poprzedniego bloku danych lub 0 jeli pierwszy
+ * - crc - suma kontrola poprzedniego bloku danych lub 0 je�li pierwszy
* - buf - bufor danych
- * - size - ilo danych
+ * - size - ilo�� danych
*
* suma kontrolna CRC32.
*/
diff --git a/kopete/protocols/gadu/libgadu/events.c b/kopete/protocols/gadu/libgadu/events.c
index 97b84912..7adc3a84 100644
--- a/kopete/protocols/gadu/libgadu/events.c
+++ b/kopete/protocols/gadu/libgadu/events.c
@@ -2,8 +2,8 @@
/*
* (C) Copyright 2001-2006 Wojtek Kaniewski <wojtekka@irc.pl>
- * Robert J. Wony <speedy@ziew.org>
- * Arkadiusz Mikiewicz <arekm@pld-linux.org>
+ * Robert J. Wo�ny <speedy@ziew.org>
+ * Arkadiusz Mi�kiewicz <arekm@pld-linux.org>
* Adam Wysocki <gophi@ekg.chmurka.net>
*
* This program is free software; you can redistribute it and/or modify
@@ -50,9 +50,9 @@
/*
* gg_event_free()
*
- * zwalnia pami zajmowan przez informacj o zdarzeniu.
+ * zwalnia pami�� zajmowan� przez informacj� o zdarzeniu.
*
- * - e - wskanik do informacji o zdarzeniu
+ * - e - wska�nik do informacji o zdarzeniu
*/
void gg_event_free(struct gg_event *e)
{
@@ -127,7 +127,7 @@ void gg_event_free(struct gg_event *e)
*
* - s - sesja
* - q - kolejka
- * - freeq - czy zwolni kolejk
+ * - freeq - czy zwolni� kolejk�
*
* 0/-1
*/
@@ -161,9 +161,9 @@ int gg_image_queue_remove(struct gg_session *s, struct gg_image_queue *q, int fr
}
/*
- * gg_image_queue_parse() // funkcja wewntrzna
+ * gg_image_queue_parse() // funkcja wewn�trzna
*
- * parsuje przychodzcy pakiet z obrazkiem.
+ * parsuje przychodz�cy pakiet z obrazkiem.
*
* - e - opis zdarzenia
* -
@@ -178,7 +178,7 @@ static void gg_image_queue_parse(struct gg_event *e, char *p, unsigned int len,
return;
}
- /* znajd dany obrazek w kolejce danej sesji */
+ /* znajd� dany obrazek w kolejce danej sesji */
for (qq = sess->images, q = NULL; qq; qq = qq->next) {
if (sender == qq->sender && i->size == qq->size && i->crc32 == qq->crc32) {
@@ -200,7 +200,7 @@ static void gg_image_queue_parse(struct gg_event *e, char *p, unsigned int len,
len -= sizeof(struct gg_msg_image_reply);
p += sizeof(struct gg_msg_image_reply);
- /* sprawd, czy mamy tekst zakoczony \0 */
+ /* sprawd�, czy mamy tekst zako�czony \0 */
for (i = 0; i < len; i++) {
if (!p[i]) {
@@ -232,7 +232,7 @@ static void gg_image_queue_parse(struct gg_event *e, char *p, unsigned int len,
memcpy(q->image + q->done, p, len);
q->done += len;
- /* jeli skoczono odbiera obrazek, wygeneruj zdarzenie */
+ /* je�li sko�czono odbiera� obrazek, wygeneruj zdarzenie */
if (q->done >= q->size) {
e->type = GG_EVENT_IMAGE_REPLY;
@@ -249,12 +249,12 @@ static void gg_image_queue_parse(struct gg_event *e, char *p, unsigned int len,
}
/*
- * gg_handle_recv_msg() // funkcja wewntrzna
+ * gg_handle_recv_msg() // funkcja wewn�trzna
*
- * obsuguje pakiet z przychodzc wiadomoci, rozbijajc go na dodatkowe
+ * obs�uguje pakiet z przychodz�c� wiadomo�ci�, rozbijaj�c go na dodatkowe
* struktury (konferencje, kolorki) w razie potrzeby.
*
- * - h - nagwek pakietu
+ * - h - nag��wek pakietu
* - e - opis zdarzenia
*
* 0, -1.
@@ -384,7 +384,7 @@ static int gg_handle_recv_msg(struct gg_header *h, struct gg_event *e, struct gg
if (p + sizeof(struct gg_msg_image_reply) == packet_end) {
- /* pusta odpowied - klient po drugiej stronie nie ma danego obrazka */
+ /* pusta odpowied� - klient po drugiej stronie nie ma ��danego obrazka */
e->type = GG_EVENT_IMAGE_REPLY;
e->event.image_reply.sender = gg_fix32(r->sender);
@@ -438,11 +438,11 @@ fail:
}
/*
- * gg_watch_fd_connected() // funkcja wewntrzna
+ * gg_watch_fd_connected() // funkcja wewn�trzna
*
- * patrzy na gniazdo, odbiera pakiet i wypenia struktur zdarzenia.
+ * patrzy na gniazdo, odbiera pakiet i wype�nia struktur� zdarzenia.
*
- * - sess - struktura opisujca sesj
+ * - sess - struktura opisuj�ca sesj�
* - e - opis zdarzenia
*
* 0, -1.
@@ -727,7 +727,7 @@ static int gg_watch_fd_connected(struct gg_session *sess, struct gg_event *e)
if (h->length < 1)
break;
- /* jeli odpowied na eksport, wywoaj zdarzenie tylko
+ /* je�li odpowied� na eksport, wywo�aj zdarzenie tylko
* gdy otrzymano wszystkie odpowiedzi */
if (p[0] == GG_USERLIST_PUT_REPLY || p[0] == GG_USERLIST_PUT_MORE_REPLY) {
if (--sess->userlist_blocks)
@@ -780,16 +780,16 @@ fail:
/*
* gg_watch_fd()
*
- * funkcja, ktr naley wywoa, gdy co si stanie z obserwowanym
- * deskryptorem. zwraca klientowi informacj o tym, co si dzieje.
+ * funkcja, kt�r� nale�y wywo�a�, gdy co� si� stanie z obserwowanym
+ * deskryptorem. zwraca klientowi informacj� o tym, co si� dzieje.
*
* - sess - opis sesji
*
- * wskanik do struktury gg_event, ktr trzeba zwolni pniej
- * za pomoc gg_event_free(). jesli rodzaj zdarzenia jest rwny
- * GG_EVENT_NONE, naley je zignorowa. jeli zwrcio NULL,
- * stao si co niedobrego -- albo zabrako pamici albo zerwao
- * poczenie.
+ * wska�nik do struktury gg_event, kt�r� trzeba zwolni� p��niej
+ * za pomoc� gg_event_free(). jesli rodzaj zdarzenia jest r�wny
+ * GG_EVENT_NONE, nale�y je zignorowa�. je�li zwr�ci�o NULL,
+ * sta�o si� co� niedobrego -- albo zabrak�o pami�ci albo zerwa�o
+ * po��czenie.
*/
struct gg_event *gg_watch_fd(struct gg_session *sess)
{
@@ -845,14 +845,14 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
goto fail_resolving;
}
- /* jeli jestemy w resolverze i mamy ustawiony port
- * proxy, znaczy, e resolvowalimy proxy. zatem
+ /* je�li jeste�my w resolverze i mamy ustawiony port
+ * proxy, znaczy, �e resolvowali�my proxy. zatem
* wpiszmy jego adres. */
if (sess->proxy_port)
sess->proxy_addr = addr.s_addr;
/* zapiszmy sobie adres huba i adres serwera (do
- * bezporedniego poczenia, jeli hub ley)
+ * bezpo�redniego po��czenia, je�li hub le�y)
* z resolvera. */
if (sess->proxy_addr && sess->proxy_port)
port = sess->proxy_port;
@@ -863,17 +863,17 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() resolved, connecting to %s:%d\n", inet_ntoa(addr), port);
- /* czymy si albo z hubem, albo z proxy, zalenie
- * od tego, co resolvowalimy. */
+ /* ��czymy si� albo z hubem, albo z proxy, zale�nie
+ * od tego, co resolvowali�my. */
if ((sess->fd = gg_connect(&addr, port, sess->async)) == -1) {
- /* jeli w trybie asynchronicznym gg_connect()
- * zwrci bd, nie ma sensu prbowa dalej. */
+ /* je�li w trybie asynchronicznym gg_connect()
+ * zwr�ci b��d, nie ma sensu pr�bowa� dalej. */
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection failed (errno=%d, %s), critical\n", errno, strerror(errno));
goto fail_connecting;
}
- /* jeli podano serwer i czmy si przez proxy,
- * jest to bezporednie poczenie, inaczej jest
+ /* je�li podano serwer i ��czmy si� przez proxy,
+ * jest to bezpo�rednie po��czenie, inaczej jest
* do huba. */
sess->state = (sess->proxy_addr && sess->proxy_port && sess->server_addr) ? GG_STATE_CONNECTING_GG : GG_STATE_CONNECTING_HUB;
sess->check = GG_CHECK_WRITE;
@@ -890,11 +890,11 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() GG_STATE_CONNECTING_HUB\n");
- /* jeli asynchroniczne, sprawdzamy, czy nie wystpi
- * przypadkiem jaki bd. */
+ /* je�li asynchroniczne, sprawdzamy, czy nie wyst�pi�
+ * przypadkiem jaki� b��d. */
if (sess->async && (getsockopt(sess->fd, SOL_SOCKET, SO_ERROR, &res, &res_size) || res)) {
- /* no tak, nie udao si poczy z proxy. nawet
- * nie prbujemy dalej. */
+ /* no tak, nie uda�o si� po��czy� z proxy. nawet
+ * nie pr�bujemy dalej. */
if (sess->proxy_addr && sess->proxy_port) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection to proxy failed (errno=%d, %s)\n", res, strerror(res));
goto fail_connecting;
@@ -905,9 +905,9 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
if ((sess->fd = gg_connect(&sess->hub_addr, GG_DEFAULT_PORT, sess->async)) == -1) {
/* przy asynchronicznych, gg_connect()
- * zwraca -1 przy bdach socket(),
+ * zwraca -1 przy b��dach socket(),
* ioctl(), braku routingu itd. dlatego
- * nawet nie prbujemy dalej. */
+ * nawet nie pr�bujemy dalej. */
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() direct connection failed (errno=%d, %s), critical\n", errno, strerror(errno));
goto fail_connecting;
}
@@ -952,7 +952,7 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
free(client);
- /* zwolnij pami po wersji klienta. */
+ /* zwolnij pami�� po wersji klienta. */
if (sess->client_version) {
free(sess->client_version);
sess->client_version = NULL;
@@ -960,9 +960,9 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
gg_debug(GG_DEBUG_MISC, "=> -----BEGIN-HTTP-QUERY-----\n%s\n=> -----END-HTTP-QUERY-----\n", buf);
- /* zapytanie jest krtkie, wic zawsze zmieci si
- * do bufora gniazda. jeli write() zwrci mniej,
- * stao si co zego. */
+ /* zapytanie jest kr�tkie, wi�c zawsze zmie�ci si�
+ * do bufora gniazda. je�li write() zwr�ci mniej,
+ * sta�o si� co� z�ego. */
if (write(sess->fd, buf, strlen(buf)) < (signed)strlen(buf)) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() sending query failed\n");
@@ -989,22 +989,22 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() GG_STATE_READING_DATA\n");
- /* czytamy lini z gniazda i obcinamy \r\n. */
+ /* czytamy lini� z gniazda i obcinamy \r\n. */
gg_read_line(sess->fd, buf, sizeof(buf) - 1);
gg_chomp(buf);
gg_debug(GG_DEBUG_TRAFFIC, "// gg_watch_fd() received http header (%s)\n", buf);
- /* sprawdzamy, czy wszystko w porzdku. */
+ /* sprawdzamy, czy wszystko w porz�dku. */
if (strncmp(buf, "HTTP/1.", 7) || strncmp(buf + 9, "200", 3)) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() that's not what we've expected, trying direct connection\n");
close(sess->fd);
- /* jeli otrzymalimy jakie dziwne informacje,
- * prbujemy si czy z pominiciem huba. */
+ /* je�li otrzymali�my jakie� dziwne informacje,
+ * pr�bujemy si� ��czy� z pomini�ciem huba. */
if (sess->proxy_addr && sess->proxy_port) {
if ((sess->fd = gg_connect(&sess->proxy_addr, sess->proxy_port, sess->async)) == -1) {
- /* trudno. nie wyszo. */
+ /* trudno. nie wysz�o. */
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection to proxy failed (errno=%d, %s)\n", errno, strerror(errno));
goto fail_connecting;
}
@@ -1017,13 +1017,13 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
sess->port = GG_DEFAULT_PORT;
- /* czymy si na port 8074 huba. */
+ /* ��czymy si� na port 8074 huba. */
if ((sess->fd = gg_connect(&sess->hub_addr, sess->port, sess->async)) == -1) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection failed (errno=%d, %s), trying https\n", errno, strerror(errno));
sess->port = GG_HTTPS_PORT;
- /* czymy si na port 443. */
+ /* ��czymy si� na port 443. */
if ((sess->fd = gg_connect(&sess->hub_addr, sess->port, sess->async)) == -1) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection failed (errno=%d, %s)\n", errno, strerror(errno));
goto fail_connecting;
@@ -1036,16 +1036,16 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
break;
}
- /* ignorujemy reszt nagwka. */
+ /* ignorujemy reszt� nag��wka. */
while (strcmp(buf, "\r\n") && strcmp(buf, ""))
gg_read_line(sess->fd, buf, sizeof(buf) - 1);
- /* czytamy pierwsz lini danych. */
+ /* czytamy pierwsz� lini� danych. */
gg_read_line(sess->fd, buf, sizeof(buf) - 1);
gg_chomp(buf);
- /* jeli pierwsza liczba w linii nie jest rwna zeru,
- * oznacza to, e mamy wiadomo systemow. */
+ /* je�li pierwsza liczba w linii nie jest r�wna zeru,
+ * oznacza to, �e mamy wiadomo�� systemow�. */
if (atoi(buf)) {
char tmp[1024], *foo, *sysmsg_buf = NULL;
int len = 0;
@@ -1088,7 +1088,7 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
tmp++;
*tmp = 0;
- if ((tmp = strchr(host, ':'))) {
+ if ((tmp = (char*)strchr(host, ':'))) {
*tmp = 0;
port = atoi(tmp + 1);
}
@@ -1103,9 +1103,9 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
sess->server_addr = addr.s_addr;
if (!gg_proxy_http_only && sess->proxy_addr && sess->proxy_port) {
- /* jeli mamy proxy, czymy si z nim. */
+ /* je�li mamy proxy, ��czymy si� z nim. */
if ((sess->fd = gg_connect(&sess->proxy_addr, sess->proxy_port, sess->async)) == -1) {
- /* nie wyszo? trudno. */
+ /* nie wysz�o? trudno. */
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection to proxy failed (errno=%d, %s)\n", errno, strerror(errno));
goto fail_connecting;
}
@@ -1118,15 +1118,15 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
sess->port = port;
- /* czymy si z waciwym serwerem. */
+ /* ��czymy si� z w�a�ciwym serwerem. */
if ((sess->fd = gg_connect(&addr, sess->port, sess->async)) == -1) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection failed (errno=%d, %s), trying https\n", errno, strerror(errno));
sess->port = GG_HTTPS_PORT;
- /* nie wyszo? prbujemy portu 443. */
+ /* nie wysz�o? pr�bujemy portu 443. */
if ((sess->fd = gg_connect(&addr, GG_HTTPS_PORT, sess->async)) == -1) {
- /* ostatnia deska ratunku zawioda?
+ /* ostatnia deska ratunku zawiod�a?
* w takim razie zwijamy manatki. */
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection failed (errno=%d, %s)\n", errno, strerror(errno));
goto fail_connecting;
@@ -1146,10 +1146,10 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() GG_STATE_CONNECTING_GG\n");
- /* jeli wystpi bd podczas czenia si... */
+ /* je�li wyst�pi� b��d podczas ��czenia si�... */
if (sess->async && (sess->timeout == 0 || getsockopt(sess->fd, SOL_SOCKET, SO_ERROR, &res, &res_size) || res)) {
- /* jeli nie udao si poczenie z proxy,
- * nie mamy czego prbowa wicej. */
+ /* je�li nie uda�o si� po��czenie z proxy,
+ * nie mamy czego pr�bowa� wi�cej. */
if (sess->proxy_addr && sess->proxy_port) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection to proxy failed (errno=%d, %s)\n", res, strerror(res));
goto fail_connecting;
@@ -1164,10 +1164,10 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
#endif
#ifdef __GG_LIBGADU_HAVE_OPENSSL
- /* jeli logujemy si po TLS, nie prbujemy
- * si czy ju z niczym innym w przypadku
- * bdu. nie do, e nie ma sensu, to i
- * trzeba by si bawi w tworzenie na nowo
+ /* je�li logujemy si� po TLS, nie pr�bujemy
+ * si� ��czy� ju� z niczym innym w przypadku
+ * b��du. nie do��, �e nie ma sensu, to i
+ * trzeba by si� bawi� w tworzenie na nowo
* SSL i SSL_CTX. */
if (sess->ssl) {
@@ -1180,7 +1180,7 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
sess->port = GG_HTTPS_PORT;
- /* prbujemy na port 443. */
+ /* pr�bujemy na port 443. */
if ((sess->fd = gg_connect(&sess->server_addr, sess->port, sess->async)) == -1) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() connection failed (errno=%d, %s)\n", errno, strerror(errno));
goto fail_connecting;
@@ -1192,7 +1192,7 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
if (gg_proxy_http_only)
sess->proxy_port = 0;
- /* jeli mamy proxy, wylijmy zapytanie. */
+ /* je�li mamy proxy, wy�lijmy zapytanie. */
if (sess->proxy_addr && sess->proxy_port) {
char buf[100], *auth = gg_proxy_auth();
struct in_addr addr;
@@ -1206,9 +1206,9 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() proxy request:\n// %s", buf);
- /* wysyamy zapytanie. jest ono na tyle krtkie,
- * e musi si zmieci w buforze gniazda. jeli
- * write() zawiedzie, stao si co zego. */
+ /* wysy�amy zapytanie. jest ono na tyle kr�tkie,
+ * �e musi si� zmie�ci� w buforze gniazda. je�li
+ * write() zawiedzie, sta�o si� co� z�ego. */
if (write(sess->fd, buf, strlen(buf)) < (signed)strlen(buf)) {
gg_debug(GG_DEBUG_MISC, "// gg_watch_fd() can't send proxy request\n");
if (auth)
@@ -1344,8 +1344,8 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
memset(&l, 0, sizeof(l));
l.dunno2 = 0xbe;
- /* XXX bardzo, bardzo, bardzo gupi pomys na pozbycie
- * si tekstu wrzucanego przez proxy. */
+ /* XXX bardzo, bardzo, bardzo g�upi pomys� na pozbycie
+ * si� tekstu wrzucanego przez proxy. */
if (sess->proxy_addr && sess->proxy_port) {
char buf[100];
@@ -1362,7 +1362,7 @@ struct gg_event *gg_watch_fd(struct gg_session *sess)
}
/* XXX niech czeka jeszcze raz w tej samej
- * fazie. gupio, ale dziaa. */
+ * fazie. g�upio, ale dzia�a. */
sess->proxy_port = 0;
break;
diff --git a/kopete/protocols/gadu/libgadu/http.c b/kopete/protocols/gadu/libgadu/http.c
index 77ebb319..debe0eb6 100644
--- a/kopete/protocols/gadu/libgadu/http.c
+++ b/kopete/protocols/gadu/libgadu/http.c
@@ -44,17 +44,17 @@
/*
* gg_http_connect() // funkcja pomocnicza
*
- * rozpoczyna poczenie po http.
+ * rozpoczyna po��czenie po http.
*
* - hostname - adres serwera
* - port - port serwera
- * - async - asynchroniczne poczenie
+ * - async - asynchroniczne po��czenie
* - method - metoda http (GET, POST, cokolwiek)
- * - path - cieka do zasobu (musi by poprzedzona ,,/'')
- * - header - nagwek zapytania plus ewentualne dane dla POST
+ * - path - �cie�ka do zasobu (musi by� poprzedzona ,,/'')
+ * - header - nag��wek zapytania plus ewentualne dane dla POST
*
- * zaalokowana struct gg_http, ktr poniej naley
- * zwolni funkcj gg_http_free(), albo NULL jeli wystpi bd.
+ * zaalokowana struct gg_http, kt�r� po�niej nale�y
+ * zwolni� funkcj� gg_http_free(), albo NULL je�li wyst�pi� b��d.
*/
struct gg_http *gg_http_connect(const char *hostname, int port, int async, const char *method, const char *path, const char *header)
{
@@ -166,14 +166,14 @@ struct gg_http *gg_http_connect(const char *hostname, int port, int async, const
/*
* gg_http_watch_fd()
*
- * przy asynchronicznej obsudze HTTP funkcj t naley wywoa, jeli
- * zmienio si co na obserwowanym deskryptorze.
+ * przy asynchronicznej obs�udze HTTP funkcj� t� nale�y wywo�a�, je�li
+ * zmieni�o si� co� na obserwowanym deskryptorze.
*
- * - h - struktura opisujca poczenie
+ * - h - struktura opisuj�ca po��czenie
*
- * jeli wszystko poszo dobrze to 0, inaczej -1. poczenie bdzie
- * zakoczone, jeli h->state == GG_STATE_PARSING. jeli wystpi jaki
- * bd, to bdzie tam GG_STATE_ERROR i odpowiedni kod bdu w h->error.
+ * je�li wszystko posz�o dobrze to 0, inaczej -1. po��czenie b�dzie
+ * zako�czone, je�li h->state == GG_STATE_PARSING. je�li wyst�pi jaki�
+ * b��d, to b�dzie tam GG_STATE_ERROR i odpowiedni kod b��du w h->error.
*/
int gg_http_watch_fd(struct gg_http *h)
{
@@ -339,7 +339,7 @@ int gg_http_watch_fd(struct gg_http *h)
if (!strncasecmp(line, "Content-length: ", 16)) {
h->body_size = atoi(line + 16);
}
- line = strchr(line, '\n');
+ line = (char*)strchr(line, '\n');
if (line)
line++;
}
@@ -451,9 +451,9 @@ int gg_http_watch_fd(struct gg_http *h)
/*
* gg_http_stop()
*
- * jeli poczenie jest w trakcie, przerywa je. nie zwalnia h->data.
+ * je�li po��czenie jest w trakcie, przerywa je. nie zwalnia h->data.
*
- * - h - struktura opisujca poczenie
+ * - h - struktura opisuj�ca po��czenie
*/
void gg_http_stop(struct gg_http *h)
{
@@ -469,7 +469,7 @@ void gg_http_stop(struct gg_http *h)
}
/*
- * gg_http_free_fields() // funkcja wewntrzna
+ * gg_http_free_fields() // funkcja wewn�trzna
*
* zwalnia pola struct gg_http, ale nie zwalnia samej struktury.
*/
@@ -497,9 +497,9 @@ void gg_http_free_fields(struct gg_http *h)
/*
* gg_http_free()
*
- * prbuje zamkn poczenie i zwalnia pami po nim.
+ * pr�buje zamkn�� po��czenie i zwalnia pami�� po nim.
*
- * - h - struktura, ktr naley zlikwidowa
+ * - h - struktura, kt�r� nale�y zlikwidowa�
*/
void gg_http_free(struct gg_http *h)
{
diff --git a/kopete/protocols/gadu/libgadu/pubdir.c b/kopete/protocols/gadu/libgadu/pubdir.c
index 7ed545ff..50e11932 100644
--- a/kopete/protocols/gadu/libgadu/pubdir.c
+++ b/kopete/protocols/gadu/libgadu/pubdir.c
@@ -33,17 +33,17 @@
/*
* gg_register3()
*
- * rozpoczyna rejestracj uytkownika protokoem GG 6.0. wymaga wczeniejszego
- * pobrania tokenu za pomoc funkcji gg_token().
+ * rozpoczyna rejestracj� u�ytkownika protoko�em GG 6.0. wymaga wcze�niejszego
+ * pobrania tokenu za pomoc� funkcji gg_token().
*
* - email - adres e-mail klienta
- * - password - haso klienta
+ * - password - has�o klienta
* - tokenid - identyfikator tokenu
- * - tokenval - warto tokenu
- * - async - poczenie asynchroniczne
+ * - tokenval - warto�� tokenu
+ * - async - po��czenie asynchroniczne
*
- * zaalokowana struct gg_http, ktr poniej naley zwolni
- * funkcj gg_register_free(), albo NULL jeli wystpi bd.
+ * zaalokowana struct gg_http, kt�r� po�niej nale�y zwolni�
+ * funkcj� gg_register_free(), albo NULL je�li wyst�pi� b��d.
*/
struct gg_http *gg_register3(const char *email, const char *password, const char *tokenid, const char *tokenval, int async)
{
@@ -125,16 +125,16 @@ struct gg_http *gg_register3(const char *email, const char *password, const char
/*
* gg_unregister3()
*
- * usuwa konto uytkownika z serwera protokoem GG 6.0
+ * usuwa konto u�ytkownika z serwera protoko�em GG 6.0
*
* - uin - numerek GG
- * - password - haso klienta
+ * - password - has�o klienta
* - tokenid - identyfikator tokenu
- * - tokenval - warto tokenu
- * - async - poczenie asynchroniczne
+ * - tokenval - warto�� tokenu
+ * - async - po��czenie asynchroniczne
*
- * zaalokowana struct gg_http, ktr poniej naley zwolni
- * funkcj gg_unregister_free(), albo NULL jeli wystpi bd.
+ * zaalokowana struct gg_http, kt�r� po�niej nale�y zwolni�
+ * funkcj� gg_unregister_free(), albo NULL je�li wyst�pi� b��d.
*/
struct gg_http *gg_unregister3(uin_t uin, const char *password, const char *tokenid, const char *tokenval, int async)
{
@@ -214,19 +214,19 @@ struct gg_http *gg_unregister3(uin_t uin, const char *password, const char *toke
/*
* gg_change_passwd4()
*
- * wysya danie zmiany hasa zgodnie z protokoem GG 6.0. wymaga
- * wczeniejszego pobrania tokenu za pomoc funkcji gg_token().
+ * wysy�a ��danie zmiany has�a zgodnie z protoko�em GG 6.0. wymaga
+ * wcze�niejszego pobrania tokenu za pomoc� funkcji gg_token().
*
* - uin - numer
* - email - adres e-mail
- * - passwd - stare haso
- * - newpasswd - nowe haso
+ * - passwd - stare has�o
+ * - newpasswd - nowe has�o
* - tokenid - identyfikator tokenu
- * - tokenval - warto tokenu
- * - async - poczenie asynchroniczne
+ * - tokenval - warto�� tokenu
+ * - async - po��czenie asynchroniczne
*
- * zaalokowana struct gg_http, ktr poniej naley zwolni
- * funkcj gg_change_passwd_free(), albo NULL jeli wystpi bd.
+ * zaalokowana struct gg_http, kt�r� po�niej nale�y zwolni�
+ * funkcj� gg_change_passwd_free(), albo NULL je�li wyst�pi� b��d.
*/
struct gg_http *gg_change_passwd4(uin_t uin, const char *email, const char *passwd, const char *newpasswd, const char *tokenid, const char *tokenval, int async)
{
@@ -313,16 +313,16 @@ struct gg_http *gg_change_passwd4(uin_t uin, const char *email, const char *pass
/*
* gg_remind_passwd3()
*
- * wysya danie przypomnienia hasa e-mailem.
+ * wysy�a ��danie przypomnienia has�a e-mailem.
*
* - uin - numer
* - email - adres e-mail taki, jak ten zapisany na serwerze
- * - async - poczenie asynchroniczne
+ * - async - po��czenie asynchroniczne
* - tokenid - identyfikator tokenu
- * - tokenval - warto tokenu
+ * - tokenval - warto�� tokenu
*
- * zaalokowana struct gg_http, ktr poniej naley zwolni
- * funkcj gg_remind_passwd_free(), albo NULL jeli wystpi bd.
+ * zaalokowana struct gg_http, kt�r� po�niej nale�y zwolni�
+ * funkcj� gg_remind_passwd_free(), albo NULL je�li wyst�pi� b��d.
*/
struct gg_http *gg_remind_passwd3(uin_t uin, const char *email, const char *tokenid, const char *tokenval, int async)
{
@@ -400,14 +400,14 @@ struct gg_http *gg_remind_passwd3(uin_t uin, const char *email, const char *toke
/*
* gg_pubdir_watch_fd()
*
- * przy asynchronicznych operacjach na katalogu publicznym naley wywoywa
- * t funkcj przy zmianach na obserwowanym deskryptorze.
+ * przy asynchronicznych operacjach na katalogu publicznym nale�y wywo�ywa�
+ * t� funkcj� przy zmianach na obserwowanym deskryptorze.
*
- * - h - struktura opisujca poczenie
+ * - h - struktura opisuj�ca po��czenie
*
- * jeli wszystko poszo dobrze to 0, inaczej -1. operacja bdzie
- * zakoczona, jeli h->state == GG_STATE_DONE. jeli wystpi jaki
- * bd, to bdzie tam GG_STATE_ERROR i odpowiedni kod bdu w h->error.
+ * je�li wszystko posz�o dobrze to 0, inaczej -1. operacja b�dzie
+ * zako�czona, je�li h->state == GG_STATE_DONE. je�li wyst�pi jaki�
+ * b��d, to b�dzie tam GG_STATE_ERROR i odpowiedni kod b��du w h->error.
*/
int gg_pubdir_watch_fd(struct gg_http *h)
{
@@ -466,7 +466,7 @@ int gg_pubdir_watch_fd(struct gg_http *h)
/*
* gg_pubdir_free()
*
- * zwalnia pami po efektach operacji na katalogu publicznym.
+ * zwalnia pami�� po efektach operacji na katalogu publicznym.
*
* - h - zwalniana struktura
*/
@@ -482,11 +482,11 @@ void gg_pubdir_free(struct gg_http *h)
/*
* gg_token()
*
- * pobiera z serwera token do autoryzacji zakadania konta, usuwania
- * konta i zmiany hasa.
+ * pobiera z serwera token do autoryzacji zak�adania konta, usuwania
+ * konta i zmiany has�a.
*
- * zaalokowana struct gg_http, ktr poniej naley zwolni
- * funkcj gg_token_free(), albo NULL jeli wystpi bd.
+ * zaalokowana struct gg_http, kt�r� po�niej nale�y zwolni�
+ * funkcj� gg_token_free(), albo NULL je�li wyst�pi� b��d.
*/
struct gg_http *gg_token(int async)
{
@@ -519,14 +519,14 @@ struct gg_http *gg_token(int async)
/*
* gg_token_watch_fd()
*
- * przy asynchronicznych operacjach zwizanych z tokenem naley wywoywa
- * t funkcj przy zmianach na obserwowanym deskryptorze.
+ * przy asynchronicznych operacjach zwi�zanych z tokenem nale�y wywo�ywa�
+ * t� funkcj� przy zmianach na obserwowanym deskryptorze.
*
- * - h - struktura opisujca poczenie
+ * - h - struktura opisuj�ca po��czenie
*
- * jeli wszystko poszo dobrze to 0, inaczej -1. operacja bdzie
- * zakoczona, jeli h->state == GG_STATE_DONE. jeli wystpi jaki
- * bd, to bdzie tam GG_STATE_ERROR i odpowiedni kod bdu w h->error.
+ * je�li wszystko posz�o dobrze to 0, inaczej -1. operacja b�dzie
+ * zako�czona, je�li h->state == GG_STATE_DONE. je�li wyst�pi jaki�
+ * b��d, to b�dzie tam GG_STATE_ERROR i odpowiedni kod b��du w h->error.
*/
int gg_token_watch_fd(struct gg_http *h)
{
@@ -552,8 +552,8 @@ int gg_token_watch_fd(struct gg_http *h)
if (h->state != GG_STATE_PARSING)
return 0;
- /* jeli h->data jest puste, to cigalimy tokenid i url do niego,
- * ale jeli co tam jest, to znaczy, e mamy drugi etap polegajcy
+ /* je�li h->data jest puste, to �ci�gali�my tokenid i url do niego,
+ * ale je�li co� tam jest, to znaczy, �e mamy drugi etap polegaj�cy
* na pobieraniu tokenu. */
if (!h->data) {
int width, height, length;
@@ -578,14 +578,14 @@ int gg_token_watch_fd(struct gg_http *h)
return -1;
}
- /* dostalimy tokenid i wszystkie niezbdne informacje,
- * wic pobierzmy obrazek z tokenem */
+ /* dostali�my tokenid i wszystkie niezb�dne informacje,
+ * wi�c pobierzmy obrazek z tokenem */
if (strncmp(url, "http://", 7)) {
path = gg_saprintf("%s?tokenid=%s", url, tokenid);
host = GG_REGISTER_HOST;
} else {
- char *slash = strchr(url + 7, '/');
+ char *slash = (char*)strchr(url + 7, '/');
if (slash) {
path = gg_saprintf("%s?tokenid=%s", slash, tokenid);
@@ -660,7 +660,7 @@ int gg_token_watch_fd(struct gg_http *h)
/*
* gg_token_free()
*
- * zwalnia pami po efektach pobierania tokenu.
+ * zwalnia pami�� po efektach pobierania tokenu.
*
* - h - zwalniana struktura
*/
diff --git a/kopete/protocols/groupwise/libgroupwise/rtf.cc b/kopete/protocols/groupwise/libgroupwise/rtf.cc
index eb5da80e..14a3005a 100644
--- a/kopete/protocols/groupwise/libgroupwise/rtf.cc
+++ b/kopete/protocols/groupwise/libgroupwise/rtf.cc
@@ -2235,7 +2235,7 @@ void Level::setText(const char *str)
FontDef& def = p->fonts[m_nFont-1];
- char *pp = strchr(str, ';');
+ const char *pp = strchr(str, ';');
unsigned size;
if (pp != NULL)
size = (pp - str);
diff --git a/kopete/protocols/groupwise/libgroupwise/rtf.ll b/kopete/protocols/groupwise/libgroupwise/rtf.ll
index 37ebd9a3..67e9f5f5 100644
--- a/kopete/protocols/groupwise/libgroupwise/rtf.ll
+++ b/kopete/protocols/groupwise/libgroupwise/rtf.ll
@@ -570,7 +570,7 @@ void Level::setText(const char *str)
FontDef& def = p->fonts[m_nFont-1];
- char *pp = strchr(str, ';');
+ const char *pp = strchr(str, ';');
unsigned size;
if (pp != NULL)
size = (pp - str);
diff --git a/kopete/protocols/oscar/liboscar/rtf.cc b/kopete/protocols/oscar/liboscar/rtf.cc
index 6daa636e..bb4d88ee 100644
--- a/kopete/protocols/oscar/liboscar/rtf.cc
+++ b/kopete/protocols/oscar/liboscar/rtf.cc
@@ -2131,7 +2131,7 @@ void Level::setText(const char *str)
FontDef& def = p->fonts[m_nFont-1];
- char *pp = strchr(str, ';');
+ const char *pp = strchr(str, ';');
unsigned size;
if (pp != NULL)
size = (pp - str);
diff --git a/kopete/protocols/oscar/liboscar/rtf.ll b/kopete/protocols/oscar/liboscar/rtf.ll
index d982234b..c43aeaea 100644
--- a/kopete/protocols/oscar/liboscar/rtf.ll
+++ b/kopete/protocols/oscar/liboscar/rtf.ll
@@ -568,7 +568,7 @@ void Level::setText(const char *str)
FontDef& def = p->fonts[m_nFont-1];
- char *pp = strchr(str, ';');
+ const char *pp = strchr(str, ';');
unsigned size;
if (pp != NULL)
size = (pp - str);
diff --git a/kopete/protocols/yahoo/libkyahoo/libyahoo.c b/kopete/protocols/yahoo/libkyahoo/libyahoo.c
index 93ba9956..13f2a29c 100644
--- a/kopete/protocols/yahoo/libkyahoo/libyahoo.c
+++ b/kopete/protocols/yahoo/libkyahoo/libyahoo.c
@@ -150,7 +150,7 @@ void authresp_0x0b(const char *seed, const char *sn, const char *password, char
magic_ptr = (unsigned char *)seed;
while (*magic_ptr != (int)NULL) {
- char *loc;
+ const char *loc;
/* Ignore parentheses. */
diff --git a/kppp/connect.cpp b/kppp/connect.cpp
index 1203f4ba..6cf6e2ae 100644
--- a/kppp/connect.cpp
+++ b/kppp/connect.cpp
@@ -1253,6 +1253,7 @@ bool ConnectWidget::execppp() {
command += " " + gpppdata.speed();
command += " -detach";
+ command += " call kppp-options";
if(gpppdata.ipaddr() != "0.0.0.0" ||
gpppdata.gateway() != "0.0.0.0") {
diff --git a/kppp/devices.h b/kppp/devices.h
index 9a78b5b0..63bde2ec 100644
--- a/kppp/devices.h
+++ b/kppp/devices.h
@@ -37,41 +37,56 @@ static const char *devices[] = {
"/dev/dtyU3",
#elif defined (__linux__)
"/dev/modem",
+ "/dev/modem0",
+ "/dev/modem1",
+ "/dev/modem2",
+ "/dev/modem3",
"/dev/ttyS0",
"/dev/ttyS1",
"/dev/ttyS2",
"/dev/ttyS3",
"/dev/ttyS4",
-#ifdef ISDNSUPPORT
- "/dev/ttyI0",
- "/dev/ttyI1",
- "/dev/ttyI2",
- "/dev/ttyI3",
-#endif
+ "/dev/ttyS5",
+ "/dev/ttyS6",
+ "/dev/ttyS7",
+ "/dev/ttyS8",
+ "/dev/ttyS9",
+ "/dev/ttyS10",
+ "/dev/ttyS11",
+ "/dev/ttyS12",
+ "/dev/ttyS13",
+ "/dev/ttyS14",
+ "/dev/ttyS15",
+ "/dev/ttyS16",
+ "/dev/ttyS17",
+ "/dev/noz0",
+ "/dev/noz1",
+ "/dev/noz2",
+ "/dev/noz3",
+ "/dev/ttyACM0",
+ "/dev/ttyACM1",
+ "/dev/ttyACM2",
+ "/dev/ttyACM3",
"/dev/usb/ttyACM0", /* USB stuff modems */
"/dev/usb/ttyACM1",
"/dev/usb/ttyACM2",
"/dev/usb/ttyACM3",
+ "/dev/ttyUSB0",
+ "/dev/ttyUSB1",
+ "/dev/ttyUSB2",
+ "/dev/ttyUSB3",
"/dev/usb/ttyUSB0", /* USB stuff modems */
"/dev/usb/ttyUSB1",
"/dev/usb/ttyUSB2",
"/dev/usb/ttyUSB3",
- "/dev/ttyACM0", /* USB stuff modems with udev */
- "/dev/ttyACM1",
- "/dev/ttyACM2",
- "/dev/ttyACM3",
- "/dev/ttyUSB0",
- "/dev/ttyUSB1",
- "/dev/ttyUSB2",
- "/dev/ttyUSB3",
- "/dev/usb/tts/0", /* USB stuff modems with devfs*/
- "/dev/usb/tts/1",
- "/dev/usb/tts/2",
- "/dev/usb/tts/3",
"/dev/rfcomm0", /* BlueTooth */
"/dev/rfcomm1",
"/dev/rfcomm2",
"/dev/rfcomm3",
+ "/dev/bluetooth/rfcomm/0",
+ "/dev/bluetooth/rfcomm/1",
+ "/dev/bluetooth/rfcomm/2",
+ "/dev/bluetooth/rfcomm/3",
"/dev/ircomm0", /* IrDA */
"/dev/ircomm1",
"/dev/ircomm2",
@@ -84,6 +99,16 @@ static const char *devices[] = {
"/dev/ttySHSF1",
"/dev/ttySHSF2",
"/dev/ttySHSF3", /* necessary for conexant modem which use hsfserial commercial module */
+ "/dev/ttySLT0", /* Lucent winmodem devices */
+ "/dev/ttySLT1",
+ "/dev/ttySLT2",
+ "/dev/ttySLT3",
+#ifdef ISDNSUPPORT
+ "/dev/ttyI0",
+ "/dev/ttyI1",
+ "/dev/ttyI2",
+ "/dev/ttyI3",
+#endif
#elif defined(__svr4__)
"/dev/cua/a",
"/dev/cua/b",
diff --git a/kppp/logview/kppplogview.desktop b/kppp/logview/kppplogview.desktop
index 45b0ffa6..39ba64f6 100644
--- a/kppp/logview/kppplogview.desktop
+++ b/kppp/logview/kppplogview.desktop
@@ -75,3 +75,4 @@ Type=Application
Terminal=false
X-DCOP-ServiceType=Multi
Categories=Qt;KDE;Network;X-KDE-More;Dialup;
+NoDisplay=true
diff --git a/kppp/opener.cpp b/kppp/opener.cpp
index be72f631..049f7218 100644
--- a/kppp/opener.cpp
+++ b/kppp/opener.cpp
@@ -72,8 +72,6 @@ extern "C" int _Precvmsg(int, void*, int);
# include <net/ppp_layer/ppp_defs.h>
# include <net/if.h>
# include <net/ppp/if_ppp.h>
-# elif defined HAVE_LINUX_IF_PPP_H
-# include <linux/if_ppp.h>
# endif
#else
# include <net/ppp_defs.h>
diff --git a/kppp/ppplog.cpp b/kppp/ppplog.cpp
index 76b0903b..fae9b048 100644
--- a/kppp/ppplog.cpp
+++ b/kppp/ppplog.cpp
@@ -188,7 +188,10 @@ void PPPL_AnalyseLog(QStringList &list, QStringList &result) {
}
if (result.isEmpty())
+ {
result.append(i18n("Unable to provide help."));
+ result.append("Please refer to /usr/share/doc/kppp/README.Debian for more information.");
+ }
}
diff --git a/kppp/pppstats.cpp b/kppp/pppstats.cpp
index b5199e60..8063d618 100644
--- a/kppp/pppstats.cpp
+++ b/kppp/pppstats.cpp
@@ -71,10 +71,7 @@
#endif
#include <sys/socket.h> /* *BSD, Linux, NeXT, Ultrix etc. */
#ifndef HAVE_NET_IF_PPP_H
- #ifdef HAVE_LINUX_IF_PPP_H
- #include <linux/if.h>
- #include <linux/if_ppp.h>
- #elif defined(__DragonFly__)
+ #if defined(__DragonFly__)
#include <net/if.h>
#include <net/ppp/if_ppp.h>
#endif
diff --git a/krdc/krdc.cpp b/krdc/krdc.cpp
index d7ded0fe..36939c91 100644
--- a/krdc/krdc.cpp
+++ b/krdc/krdc.cpp
@@ -119,6 +119,7 @@ bool KRDC::start()
QString userName, password;
QString serverHost;
int serverPort = 5900;
+ int ret_status;
if (!m_host.isNull() &&
(m_host != "vnc:/") &&
@@ -204,7 +205,9 @@ bool KRDC::start()
connect(m_keyCaptureDialog, SIGNAL(keyPressed(XEvent*)),
m_view, SLOT(pressKey(XEvent*)));
- return m_view->start();
+ ret_status = m_view->start();
+
+ return ret_status;
}
void KRDC::changeProgress(RemoteViewStatus s) {
@@ -244,6 +247,10 @@ void KRDC::changeProgress(RemoteViewStatus s) {
this, SIGNAL(disconnectedError()));
connect(m_view, SIGNAL(disconnectedError()),
SIGNAL(disconnected()));
+ if (m_view->startFullscreen()) {
+ // m_view instance is asking to start in fullscreen mode
+ enableFullscreen(true);
+ }
}
else if (m_isFullscreen == WINDOW_MODE_FULLSCREEN)
switchToNormal(m_view->scaling());
@@ -462,6 +469,7 @@ void KRDC::switchToFullscreen(bool scaling)
KToolBar *t = new KToolBar(m_fsToolbar);
m_fsToolbarWidget = t;
+ t->setIconSize(KIcon::Panel);
QIconSet pinIconSet;
pinIconSet.setPixmap(m_pinup, QIconSet::Automatic, QIconSet::Normal, QIconSet::On);
@@ -471,8 +479,7 @@ void KRDC::switchToFullscreen(bool scaling)
pinButton->setIconSet(pinIconSet);
QToolTip::add(pinButton, i18n("Autohide on/off"));
t->setToggle(FS_AUTOHIDE_ID);
- t->setButton(FS_AUTOHIDE_ID, false);
- t->addConnection(FS_AUTOHIDE_ID, SIGNAL(clicked()), this, SLOT(toggleFsToolbarAutoHide()));
+ t->addConnection(FS_AUTOHIDE_ID, SIGNAL(toggled(bool)), this, SLOT(setFsToolbarAutoHide(bool)));
t->insertButton("window_nofullscreen", FS_FULLSCREEN_ID);
KToolBarButton *fullscreenButton = t->getButton(FS_FULLSCREEN_ID);
@@ -485,7 +492,6 @@ void KRDC::switchToFullscreen(bool scaling)
t->insertButton("configure", FS_ADVANCED_ID, m_popup, true, i18n("Advanced options"));
KToolBarButton *advancedButton = t->getButton(FS_ADVANCED_ID);
QToolTip::add(advancedButton, i18n("Advanced options"));
- //advancedButton->setPopupDelay(0);
QLabel *hostLabel = new QLabel(t);
hostLabel->setName("kde toolbar widget");
@@ -516,7 +522,6 @@ void KRDC::switchToFullscreen(bool scaling)
m_fsToolbar->setChild(t);
repositionView(true);
- showFullScreen();
setMaximumSize(m_fullscreenResolution.width(),
m_fullscreenResolution.height());
@@ -525,8 +530,12 @@ void KRDC::switchToFullscreen(bool scaling)
KWin::setState(winId(), NET::StaysOnTop);
- m_ftAutoHide = !m_ftAutoHide;
- setFsToolbarAutoHide(!m_ftAutoHide);
+ if (m_ftAutoHide == false) {
+ showFullscreenToolbar();
+ }
+ else {
+ t->setButton(FS_AUTOHIDE_ID, true);
+ }
if (!fromFullscreen) {
if (m_oldResolution.valid)
@@ -534,7 +543,9 @@ void KRDC::switchToFullscreen(bool scaling)
m_view->grabKeyboard();
}
- m_view->switchFullscreen( true );
+ showFullScreen();
+
+ m_view->switchFullscreen( true );
}
void KRDC::switchToNormal(bool scaling)
@@ -603,7 +614,6 @@ void KRDC::switchToNormal(bool scaling)
t->insertButton("configure", 3, m_popup, true, i18n("Advanced"));
KToolBarButton *advancedButton = t->getButton(3);
QToolTip::add(advancedButton, i18n("Advanced options"));
- //advancedButton->setPopupDelay(0);
if (m_layout)
delete m_layout;
@@ -683,7 +693,7 @@ void KRDC::toolbarChanged() {
bool KRDC::event(QEvent *e) {
-/* used to change resolution when fullscreen was minimized */
+ /* used to change resolution when fullscreen was minimized */
if ((!m_fullscreenMinimized) || (e->type() != QEvent::WindowActivate))
return QWidget::event(e);
diff --git a/krdc/kremoteview.h b/krdc/kremoteview.h
index d07b82a1..a3dbe438 100644
--- a/krdc/kremoteview.h
+++ b/krdc/kremoteview.h
@@ -124,6 +124,11 @@ public:
virtual bool viewOnly() = 0;
/**
+ * Checks whether the view is requesting full screen mode.
+ */
+ virtual bool startFullscreen() = 0;
+
+ /**
* Returns the resolution of the remote framebuffer.
* It should return a null @ref QSize when the size
* is not known.
diff --git a/krdc/main.cpp b/krdc/main.cpp
index d0cd3e4c..5c2423bd 100644
--- a/krdc/main.cpp
+++ b/krdc/main.cpp
@@ -74,13 +74,15 @@ int main(int argc, char *argv[])
{
KAboutData aboutData( "krdc", I18N_NOOP("Remote Desktop Connection"),
VERSION, description, KAboutData::License_GPL,
- "(c) 2001-2003, Tim Jansen"
- "(c) 2002-2003, Arend van Beelen jr."
+ "(c) 2009-2010, Timothy Pearson\n"
+ "(c) 2001-2003, Tim Jansen\n"
+ "(c) 2002-2003, Arend van Beelen jr.\n"
"(c) 2000-2002, Const Kaplinsky\n"
"(c) 2000, Tridia Corporation\n"
"(c) 1999, AT&T Laboratories Cambridge\n"
"(c) 1999-2003, Matthew Chapman\n", 0, 0,
"tim@tjansen.de");
+ aboutData.addAuthor("Timothy Pearson",0, "kb9vqf@pearsoncomputing.net");
aboutData.addAuthor("Tim Jansen",0, "tim@tjansen.de");
aboutData.addAuthor("Arend van Beelen jr.",
I18N_NOOP("RDP backend"), "arend@auton.nl");
diff --git a/krdc/rdp/krdpview.cpp b/krdc/rdp/krdpview.cpp
index dc388e29..720293c3 100644
--- a/krdc/rdp/krdpview.cpp
+++ b/krdc/rdp/krdpview.cpp
@@ -19,6 +19,7 @@
For any questions, comments or whatever, you may mail me at: arend@auton.nl
*/
+#include <kapplication.h>
#include <kdialogbase.h>
#include <klocale.h>
#include <kmessagebox.h>
@@ -38,6 +39,7 @@
#include "rdphostpref.h"
#include "rdpprefs.h"
+bool launch_Fullscreen_rdp = false;
bool rdpAppDataConfigured = false;
extern KWallet::Wallet *wallet;
@@ -188,6 +190,7 @@ bool KRdpView::editPreferences( HostPrefPtr host )
wv = prefs->rdpWidth();
hv = prefs->rdpHeight();
+
kl = int2keymap( prefs->kbLayout() );
hp->setAskOnConnect( prefs->showPrefs() );
hp->setWidth(wv);
@@ -206,6 +209,8 @@ bool KRdpView::start()
SmartPtr<RdpHostPref> hp, rdpDefaults;
bool useKWallet = false;
+ QWidget *desktop = QApplication::desktop();
+
if(!rdpAppDataConfigured)
{
HostPreferences *hps = HostPreferences::instance();
@@ -225,7 +230,19 @@ bool KRdpView::start()
m_process = new KProcess(m_container);
*m_process << "rdesktop";
- *m_process << "-g" << (QString::number(hp->width()) + "x" + QString::number(hp->height()));
+ // Check for fullscreen mode
+ if ((hp->width() == 0) && (hp->height() == 0)) {
+ launch_Fullscreen_rdp = true;
+ *m_process << "-g" << (QString::number(desktop->width()) + "x" + QString::number((desktop->height()-2)));
+ }
+ else {
+ if ((hp->height() > (desktop->height()-2)) && (hp->height() <= (desktop->height()))) {
+ *m_process << "-g" << (QString::number(hp->width()) + "x" + QString::number(desktop->height()-2));
+ }
+ else {
+ *m_process << "-g" << (QString::number(hp->width()) + "x" + QString::number(hp->height()));
+ }
+ }
*m_process << "-k" << hp->layout();
if(!m_user.isEmpty()) { *m_process << "-u" << m_user; }
@@ -311,6 +328,11 @@ bool KRdpView::viewOnly()
return m_container->m_viewOnly;
}
+bool KRdpView::startFullscreen()
+{
+ return launch_Fullscreen_rdp;
+}
+
void KRdpView::setViewOnly(bool s)
{
m_container->m_viewOnly = s;
diff --git a/krdc/rdp/krdpview.h b/krdc/rdp/krdpview.h
index a54c2d96..ed3f279a 100644
--- a/krdc/rdp/krdpview.h
+++ b/krdc/rdp/krdpview.h
@@ -69,6 +69,7 @@ class KRdpView : public KRemoteView
virtual QSize framebufferSize(); // returns the size of the remote view
QSize sizeHint(); // returns the suggested size
virtual bool viewOnly();
+ virtual bool startFullscreen();
// functions regarding the connection
virtual void startQuitting(); // start closing the connection
diff --git a/krdc/rdp/rdphostpref.cpp b/krdc/rdp/rdphostpref.cpp
index 783c41e4..a8186403 100644
--- a/krdc/rdp/rdphostpref.cpp
+++ b/krdc/rdp/rdphostpref.cpp
@@ -25,9 +25,9 @@ const QString RdpHostPref::RdpType = "RDP";
RdpHostPref::RdpHostPref(KConfig *conf, const QString &host, const QString &type) :
HostPref(conf, host, type),
- m_width(800),
- m_height(600),
- m_colorDepth(8),
+ m_width(0),
+ m_height(0),
+ m_colorDepth(24),
m_layout("en-us"),
m_askOnConnect(true),
m_useKWallet(true)
@@ -70,9 +70,9 @@ void RdpHostPref::load()
{
m_config->setGroup("PerHostSettings");
QString p = prefix();
- m_width = m_config->readNumEntry(p+"width", 800);
- m_height = m_config->readNumEntry(p+"height", 600);
- m_colorDepth = m_config->readNumEntry(p+"colorDepth", 8);
+ m_width = m_config->readNumEntry(p+"width", 0);
+ m_height = m_config->readNumEntry(p+"height", 0);
+ m_colorDepth = m_config->readNumEntry(p+"colorDepth", 24);
m_layout = m_config->readEntry(p+"layout", "en-us");
m_askOnConnect = m_config->readBoolEntry(p+"askOnConnect", true);
m_useKWallet = m_config->readBoolEntry(p+"useKWallet", true);
@@ -99,9 +99,9 @@ void RdpHostPref::remove()
void RdpHostPref::setDefaults()
{
m_config->setGroup("RdpDefaultSettings");
- m_width = m_config->readNumEntry("rdpWidth", 800);
- m_height = m_config->readNumEntry("rdpHeight", 600);
- m_colorDepth = m_config->readNumEntry("rdpColorDepth", 8);
+ m_width = m_config->readNumEntry("rdpWidth", 0);
+ m_height = m_config->readNumEntry("rdpHeight", 0);
+ m_colorDepth = m_config->readNumEntry("rdpColorDepth", 24);
m_layout = m_config->readEntry("rdpKeyboardLayout", "en-us");
m_askOnConnect = m_config->readBoolEntry("rdpShowHostPreferences", true);
m_useKWallet = m_config->readBoolEntry("rdpUseKWallet", true);
diff --git a/krdc/rdp/rdpprefs.ui b/krdc/rdp/rdpprefs.ui
index 8e493d7a..0e607b90 100644
--- a/krdc/rdp/rdpprefs.ui
+++ b/krdc/rdp/rdpprefs.ui
@@ -68,6 +68,11 @@
<string>Custom (...)</string>
</property>
</item>
+ <item>
+ <property name="text">
+ <string>Full Screen (Maximized)</string>
+ </property>
+ </item>
<property name="name">
<cstring>cmbResolution</cstring>
</property>
@@ -86,7 +91,7 @@
</size>
</property>
<property name="currentItem">
- <number>1</number>
+ <number>5</number>
</property>
<property name="whatsThis" stdset="0">
<string>Here you can specify the resolution of the remote desktop. This resolution determines the size of the desktop that will be presented to you.</string>
diff --git a/krdc/rdp/rdpprefs.ui.h b/krdc/rdp/rdpprefs.ui.h
index 06efe7f4..295ea5a8 100644
--- a/krdc/rdp/rdpprefs.ui.h
+++ b/krdc/rdp/rdpprefs.ui.h
@@ -34,6 +34,13 @@ void RdpPrefs::resolutionChanged( int selection )
break;
case 3:
+ break;
+
+ case 4:
+ spinWidth->setValue(0);
+ spinHeight->setValue(0);
+ break;
+
default:
break;
}
@@ -115,6 +122,15 @@ void RdpPrefs::setResolution()
{
cmbResolution->setCurrentItem(2);
}
+ else if (cmbResolution->currentItem()==4)
+ {
+ // Fullscreen selected
+ }
+ else if (rdpWidth()==0 && rdpHeight()==0)
+ {
+ // Fullscreen selected
+ cmbResolution->setCurrentItem(4);
+ }
else
{
cmbResolution->setCurrentItem(3);
diff --git a/krdc/vnc/kvncview.cpp b/krdc/vnc/kvncview.cpp
index 1b6a8de2..f734845b 100644
--- a/krdc/vnc/kvncview.cpp
+++ b/krdc/vnc/kvncview.cpp
@@ -40,6 +40,8 @@
#include <X11/Xlib.h>
+bool launch_Fullscreen_vnc = false;
+
/*
* appData is our application-specific data which can be set by the user with
* application resource specs. The AppData structure is defined in the header
@@ -324,6 +326,11 @@ bool KVncView::viewOnly() {
return m_viewOnly;
}
+bool KVncView::startFullscreen()
+{
+ return launch_Fullscreen_vnc;
+}
+
QSize KVncView::framebufferSize() {
return m_framebufferSize;
}
diff --git a/krdc/vnc/kvncview.h b/krdc/vnc/kvncview.h
index 1b961f3d..c0f9fba3 100644
--- a/krdc/vnc/kvncview.h
+++ b/krdc/vnc/kvncview.h
@@ -104,6 +104,7 @@ public:
virtual bool start();
virtual bool viewOnly();
+ virtual bool startFullscreen();
static bool editPreferences( HostPrefPtr );
diff --git a/krfb/kcm_krfb/kcmkrfb.desktop b/krfb/kcm_krfb/kcmkrfb.desktop
index 3b95e734..9b26afa2 100644
--- a/krfb/kcm_krfb/kcmkrfb.desktop
+++ b/krfb/kcm_krfb/kcmkrfb.desktop
@@ -189,4 +189,4 @@ Keywords[uk]=спільні стільниці,krfb,vnc,спільний,rdp,krd
Keywords[zh_CN]=desktop sharing,krfb,vnc,sharing,krdc,remote desktop connection,invitation,port,slp,uninvited,桌面共享,共享,远程桌面连接,邀请,端口,未邀请
Keywords[zh_TW]=desktop sharing,krfb,vnc,sharing,rdp,krdc,remote desktop connection,rdp,桌面分享,分享,遠端桌面連線,invitation,port,slp,uninvited
-Categories=Qt;KDE;X-KDE-settings-network;Settings;
+Categories=Qt;KDE;X-KDE-settings-network;
diff --git a/krfb/krfb/krfb.desktop b/krfb/krfb/krfb.desktop
index 6a39da53..028837db 100644
--- a/krfb/krfb/krfb.desktop
+++ b/krfb/krfb/krfb.desktop
@@ -61,4 +61,4 @@ GenericName[uz@cyrillic]=Иш столи билан бўлишиш
GenericName[zh_CN]=桌面共享
GenericName[zh_HK]=桌面分享
GenericName[zh_TW]=桌面分享
-Categories=Qt;KDE;System;RemoteAccess;Network;
+Categories=Qt;KDE;RemoteAccess;Network;
diff --git a/krfb/krfb/rfbcontroller.cc b/krfb/krfb/rfbcontroller.cc
index e6277b59..29f48278 100644
--- a/krfb/krfb/rfbcontroller.cc
+++ b/krfb/krfb/rfbcontroller.cc
@@ -398,11 +398,11 @@ void RFBController::startServer(int inetdFd, bool xtestGrab)
int h = framebufferImage->height;
char *fb = framebufferImage->data;
+ int bpp = framebufferImage->bits_per_pixel >> 3;
+ if (bpp != 1 && bpp != 2 && bpp != 4) bpp = 4;
+
rfbLogEnable(0);
- server = rfbGetScreen(0, 0, w, h,
- framebufferImage->bits_per_pixel,
- 8,
- framebufferImage->bits_per_pixel/8);
+ server = rfbGetScreen(0, 0, w, h, (bpp*8), 8, bpp);
server->paddedWidthInBytes = framebufferImage->bytes_per_line;
diff --git a/krfb/libvncserver/rfb.h b/krfb/libvncserver/rfb.h
index 53996812..a2ce39fc 100644
--- a/krfb/libvncserver/rfb.h
+++ b/krfb/libvncserver/rfb.h
@@ -67,7 +67,7 @@ typedef unsigned long KeySym;
#include "rfbproto.h"
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
#include <endian.h>
#elif defined(__APPLE__) || defined(__FreeBSD__)
#include <sys/types.h>
diff --git a/ksirc/KSPrefs/page_generalbase.ui b/ksirc/KSPrefs/page_generalbase.ui
index d3b4db06..e8ae7e8f 100644
--- a/ksirc/KSPrefs/page_generalbase.ui
+++ b/ksirc/KSPrefs/page_generalbase.ui
@@ -101,7 +101,7 @@
<string>unlimited</string>
</property>
<property name="maxValue">
- <number>1000</number>
+ <number>10000</number>
</property>
<property name="toolTip" stdset="0">
<string>Stores up to this many lines of chat from each window as history</string>
diff --git a/ksirc/dsirc b/ksirc/dsirc
index c6e0b63c..f358fcd7 100755
--- a/ksirc/dsirc
+++ b/ksirc/dsirc
@@ -114,8 +114,8 @@ $set{"IRCNAME"}=$opt_i || $ENV{"SIRCNAME"} || $ENV{"IRCNAME"} || "sirc user";
$nick=$opt_n || $ARGV[0] || $ENV{"SIRCNICK"} || $ENV{"IRCNICK"} || $username;
$set{"FINGER"}=$ENV{"IRCFINGER"} || "keep your fingers to yourself";
$set{"USERINFO"}=$ENV{"USERINFO"} || "yep, I'm a user";
-if ($server =~ /^\[([^\]]+)\]:([0-9]*):?([^:]*)$/
- or $server =~ /^([^:]+):([0-9]*):?([^:]*)$/)
+if ($server =~ /^\[([^\]]+)\]:([0-9]*):?(.*)$/
+ or $server =~ /^([^:]+):([0-9]*):?(.*)$/)
{
($server, $port, $pass)=($1, $2, $3);
}
diff --git a/ktalkd/configure.in.in b/ktalkd/configure.in.in
index 60a7df9c..6557e9ff 100644
--- a/ktalkd/configure.in.in
+++ b/ktalkd/configure.in.in
@@ -32,7 +32,8 @@ AC_FIND_USER_METHOD
AM_CONDITIONAL(KDE_INSTALLED, test "$have_kde" = "yes")
dnl Check for utmp file
-AC_CHECK_UTMP_FILE([], [DO_NOT_COMPILE="$DO_NOT_COMPILE ktalkd"])
+dnl breaks compilation on ubuntu dapper chroot, jriddell 2006-03-24
+dnl AC_CHECK_UTMP_FILE([], [DO_NOT_COMPILE="$DO_NOT_COMPILE ktalkd"])
AC_LANG_C
dnl Checks for libraries.
diff --git a/wifi/kwifimanager.desktop b/wifi/kwifimanager.desktop
index 533e4d2b..8e4f2adf 100644
--- a/wifi/kwifimanager.desktop
+++ b/wifi/kwifimanager.desktop
@@ -131,4 +131,4 @@ GenericName[uz@cyrillic]=Симсиз тармоқ бошқарувчиси
GenericName[zh_CN]=无线局域网管理器
GenericName[zh_HK]=無線網絡管理員
GenericName[zh_TW]=無線網路管理者
-Categories=Qt;KDE;Network;X-KDE-More;System;Monitor;
+Categories=Qt;KDE;Network;System;Monitor;