From kde-commits Thu Dec 12 09:00:18 2002 From: Laurent Montel Date: Thu, 12 Dec 2002 09:00:18 +0000 To: kde-commits Subject: kdenetwork/knode X-MARC-Message: https://marc.info/?l=kde-commits&m=103968372912237 CVS commit by mlaurent: Other const ... M +6 -6 knarticlewidget.h 1.51 M +1 -1 kncomposer.h 1.46 M +6 -6 kngroupmanager.h 1.30 M +12 -12 knnntpaccount.h 1.14 --- kdenetwork/knode/knarticlewidget.h #1.50:1.51 @@ -95,8 +95,8 @@ class KNArticleWidget : public KTextBrow void updateContents(); - KNArticle* article() { return a_rticle; } + KNArticle* article() const { return a_rticle; } - KSelectAction* setCharsetAction() { return a_ctSetCharset; } - KAction* setCharsetKeyboardAction() { return a_ctSetCharsetKeyb; } + KSelectAction* setCharsetAction()const { return a_ctSetCharset; } + KAction* setCharsetKeyboardAction()const { return a_ctSetCharsetKeyb; } void setText( const QString& text ) { KTextBrowser::setText( text ); } // shadowed by the overridden one @@ -225,5 +225,5 @@ class KNDisplayedHeader { const QString& name() { return n_ame; } void setName(const QString &s) { n_ame = s; } - bool hasName() { return !n_ame.isEmpty(); } + bool hasName() const { return !n_ame.isEmpty(); } //translated name @@ -231,5 +231,5 @@ class KNDisplayedHeader { void setTranslatedName(const QString &s); // *trys* to retranslate the name to english void setTranslateName(bool b) { t_ranslateName=b; } - bool translateName() { return t_ranslateName; } + bool translateName() const { return t_ranslateName; } //header --- kdenetwork/knode/kncomposer.h #1.45:1.46 @@ -53,5 +53,5 @@ class KNComposer : public KMainWindow { //get result bool hasValidData(); - composerResult result() { return r_esult; } + composerResult result() const { return r_esult; } KNLocalArticle* article()const { return a_rticle; } bool applyChanges(); --- kdenetwork/knode/kngroupmanager.h #1.29:1.30 @@ -98,5 +98,5 @@ class KNGroupManager : public QObject , KNGroup* group(const QString &gName, const KNServerInfo *s); KNGroup* firstGroupOfAccount(const KNServerInfo *s); - KNGroup* currentGroup() { return c_urrentGroup; } + KNGroup* currentGroup() const { return c_urrentGroup; } bool hasCurrentGroup() { return (c_urrentGroup!=0); } void setCurrentGroup(KNGroup *g); --- kdenetwork/knode/knnntpaccount.h #1.13:1.14 @@ -45,9 +45,9 @@ class KNNntpAccount : public KNCollectio //get - bool fetchDescriptions() { return f_etchDescriptions; } - QDate lastNewFetch() { return l_astNewFetch; } - bool wasOpen() { return w_asOpen; } - bool useDiskCache() { return u_seDiskCache; } - KNConfig::Identity* identity() { return i_dentity; } + bool fetchDescriptions()const { return f_etchDescriptions; } + QDate lastNewFetch()const { return l_astNewFetch; } + bool wasOpen()const { return w_asOpen; } + bool useDiskCache()const { return u_seDiskCache; } + KNConfig::Identity* identity() const { return i_dentity; } //set