Rename KInstance and KAboutData to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 7fab4be56b
commit 8a2b1b7547

@ -27,7 +27,7 @@
#include "uniqueapphandler.h" #include "uniqueapphandler.h"
#include "basketdcopiface_stub.h" #include "basketdcopiface_stub.h"
class KAboutData; class TDEAboutData;
class BasketUniqueAppHandler : public Kontact::UniqueAppHandler class BasketUniqueAppHandler : public Kontact::UniqueAppHandler
{ {

@ -31,8 +31,8 @@ static const char description[] = I18N_NOOP(
// Or how to make order of disorganized toughts. // Or how to make order of disorganized toughts.
AboutData::AboutData() AboutData::AboutData()
: KAboutData( "basket", I18N_NOOP("BasKet Note Pads"), : TDEAboutData( "basket", I18N_NOOP("BasKet Note Pads"),
VERSION, description, KAboutData::License_GPL_V2, VERSION, description, TDEAboutData::License_GPL_V2,
"(c) 2003-2007, S\303\251bastien Lao\303\273t", 0, "(c) 2003-2007, S\303\251bastien Lao\303\273t", 0,
"http://basket.kde.org/", "http://basket.kde.org/",
"basket-devel@lists.sourceforge.net" ) "basket-devel@lists.sourceforge.net" )

@ -26,7 +26,7 @@
@author Sébastien Laoût <slaout@linux62.org> @author Sébastien Laoût <slaout@linux62.org>
*/ */
class AboutData : public KAboutData class AboutData : public TDEAboutData
{ {
public: public:
AboutData(); AboutData();

@ -89,7 +89,7 @@ bool BasketPart::saveFile()
return false; return false;
} }
KAboutData *BasketPart::createAboutData() TDEAboutData *BasketPart::createAboutData()
{ {
return new AboutData(); return new AboutData();
} }

@ -66,7 +66,7 @@ public:
*/ */
virtual void setModified(bool modified); virtual void setModified(bool modified);
static KAboutData *createAboutData(); static TDEAboutData *createAboutData();
signals: signals:
void showPart(); void showPart();

@ -31,7 +31,7 @@ class SystemTray;
class BNPView; class BNPView;
class KGlobalAccel; class KGlobalAccel;
class KMainWindow; class KMainWindow;
class KAboutData; class TDEAboutData;
/** Handle all global variables of the application. /** Handle all global variables of the application.
* This file only declare classes : developer should include * This file only declare classes : developer should include
@ -65,7 +65,7 @@ class Global
static TQString openNoteIcon(); /// << @return the icon used for the "Open" action on notes. static TQString openNoteIcon(); /// << @return the icon used for the "Open" action on notes.
static KMainWindow* mainWindow(); static KMainWindow* mainWindow();
static KConfig* config(); static KConfig* config();
static KAboutData* about() { return &basketAbout; }; static TDEAboutData* about() { return &basketAbout; };
}; };
#endif // GLOBAL_H #endif // GLOBAL_H

@ -208,7 +208,7 @@ LikeBackPrivate::~LikeBackPrivate()
/********** class LikeBack: **********/ /********** class LikeBack: **********/
/*************************************/ /*************************************/
LikeBack::LikeBack(Button buttons, bool showBarByDefault, KConfig *config, const KAboutData *aboutData) LikeBack::LikeBack(Button buttons, bool showBarByDefault, KConfig *config, const TDEAboutData *aboutData)
: TQObject() : TQObject()
{ {
// Initialize properties (1/2): // Initialize properties (1/2):
@ -364,7 +364,7 @@ LikeBack::Button LikeBack::buttons()
return d->buttons; return d->buttons;
} }
const KAboutData* LikeBack::aboutData() const TDEAboutData* LikeBack::aboutData()
{ {
return d->aboutData; return d->aboutData;
} }
@ -566,7 +566,7 @@ void LikeBack::askEmailAddress()
setEmailAddress(email); setEmailAddress(email);
} }
// FIXME: Should be moved to KAboutData? Cigogne will also need it. // FIXME: Should be moved to TDEAboutData? Cigogne will also need it.
bool LikeBack::isDevelopmentVersion(const TQString &version) bool LikeBack::isDevelopmentVersion(const TQString &version)
{ {
return version.find("alpha", /*index=*/0, /*caseSensitive=*/false) != -1 || return version.find("alpha", /*index=*/0, /*caseSensitive=*/false) != -1 ||

@ -24,7 +24,7 @@
#include <tqobject.h> #include <tqobject.h>
class KConfig; class KConfig;
class KAboutData; class TDEAboutData;
class KAction; class KAction;
class KActionCollection; class KActionCollection;
@ -119,12 +119,12 @@ class LikeBack : public TQObject
* This allow you to disable the button-bar once the version is stable enought to be released as final. * This allow you to disable the button-bar once the version is stable enought to be released as final.
* @param config Set the configuration file where to store the user email address and if the button-bar should be shown. * @param config Set the configuration file where to store the user email address and if the button-bar should be shown.
* By default (null), the TDEApplication configuration object is used. * By default (null), the TDEApplication configuration object is used.
* @param aboutData Set the KAboutData instance used to get the application name and version. By default (null), the TDEApplication about data object is used. * @param aboutData Set the TDEAboutData instance used to get the application name and version. By default (null), the TDEApplication about data object is used.
* The application name is only used in the first-use information message. * The application name is only used in the first-use information message.
* The version is used to store the button-bar visibility per version (can be shown in a development version but not in a final one...) * The version is used to store the button-bar visibility per version (can be shown in a development version but not in a final one...)
* and to send with the comment, so you can filter per version and know if a comment refers the latest version of the application or not. * and to send with the comment, so you can filter per version and know if a comment refers the latest version of the application or not.
*/ */
LikeBack(Button buttons = DefaultButtons, bool showBarByDefault = false, KConfig *config = 0, const KAboutData *aboutData = 0); LikeBack(Button buttons = DefaultButtons, bool showBarByDefault = false, KConfig *config = 0, const TDEAboutData *aboutData = 0);
/** /**
* Destructor. * Destructor.
@ -324,10 +324,10 @@ class LikeBack : public TQObject
void setUserWantsToShowBar(bool showBar); void setUserWantsToShowBar(bool showBar);
/** /**
* @Returns A pointer to the KAboutData used to determin the application name and version. * @Returns A pointer to the TDEAboutData used to determin the application name and version.
* @See The LikeBack constructor for more information. * @See The LikeBack constructor for more information.
*/ */
const KAboutData *aboutData(); const TDEAboutData *aboutData();
/** /**
* @Returns A pointer to the KConfig used to store user configuration (email address, if the button-bar should be shown). * @Returns A pointer to the KConfig used to store user configuration (email address, if the button-bar should be shown).

@ -39,7 +39,7 @@ class LikeBackPrivate
~LikeBackPrivate(); ~LikeBackPrivate();
LikeBackBar *bar; LikeBackBar *bar;
KConfig *config; KConfig *config;
const KAboutData *aboutData; const TDEAboutData *aboutData;
LikeBack::Button buttons; LikeBack::Button buttons;
TQString hostName; TQString hostName;
TQString remotePath; TQString remotePath;

Loading…
Cancel
Save