summaryrefslogtreecommitdiffstats
path: root/kaddressbook/kaddressbookview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/kaddressbookview.h')
-rw-r--r--kaddressbook/kaddressbookview.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/kaddressbook/kaddressbookview.h b/kaddressbook/kaddressbookview.h
index 89ddca944..eb5e25156 100644
--- a/kaddressbook/kaddressbookview.h
+++ b/kaddressbook/kaddressbookview.h
@@ -26,8 +26,8 @@
#define KAB_VIEW_PLUGIN_VERSION 1
-#include <qstringlist.h>
-#include <qwidget.h>
+#include <tqstringlist.h>
+#include <tqwidget.h>
#include <kabc/field.h>
#include <klibloader.h>
@@ -60,14 +60,14 @@ class KDE_EXPORT KAddressBookView : public QWidget
public:
enum DefaultFilterType { None = 0, Active = 1, Specific = 2 };
- KAddressBookView( KAB::Core *core, QWidget *parent, const char *name );
+ KAddressBookView( KAB::Core *core, TQWidget *parent, const char *name );
virtual ~KAddressBookView();
/**
Must be overloaded in subclasses. Should return a list of
all the uids of selected contacts.
*/
- virtual QStringList selectedUids() = 0;
+ virtual TQStringList selectedUids() = 0;
/**
Called whenever this view should read the config. This can be used
@@ -98,17 +98,17 @@ class KDE_EXPORT KAddressBookView : public QWidget
virtual void writeConfig( KConfig * );
/**
- Returns a QString with all the selected email addresses concatenated
+ Returns a TQString with all the selected email addresses concatenated
together with a ',' seperator.
*/
- virtual QString selectedEmails();
+ virtual TQString selectedEmails();
/**
Return the type of the view: Icon, Table, etc. Please make sure that
this is the same value that ViewWrapper::type() will return for your
view.
*/
- virtual QString type() const = 0;
+ virtual TQString type() const = 0;
/**
Returns a list of the fields that should be displayed. The list
@@ -141,7 +141,7 @@ class KDE_EXPORT KAddressBookView : public QWidget
@return The name of the default filter. This string is
only valid if defaultFilterType() is returning SpecificFilter.
*/
- const QString &defaultFilterName() const;
+ const TQString &defaultFilterName() const;
/**
@return The Core object.
@@ -164,14 +164,14 @@ class KDE_EXPORT KAddressBookView : public QWidget
addressee with uid needs to be refreshed. This is an optimization
only.
*/
- virtual void refresh( const QString &uid = QString() ) = 0;
+ virtual void refresh( const TQString &uid = TQString() ) = 0;
/**
This method must be overloaded in subclasses. Select (highlight)
the addressee matching <i>uid</i>. If uid
- is equal to QString::null, then all addressees should be selected.
+ is equal to TQString::null, then all addressees should be selected.
*/
- virtual void setSelected( const QString &uid = QString(), bool selected = true ) = 0;
+ virtual void setSelected( const TQString &uid = TQString(), bool selected = true ) = 0;
/**
Selects the first contact in the view.
@@ -183,7 +183,7 @@ class KDE_EXPORT KAddressBookView : public QWidget
@param point The position where the menu shall appear.
*/
- void popup( const QPoint &point );
+ void popup( const TQPoint &point );
signals:
/**
@@ -203,7 +203,7 @@ class KDE_EXPORT KAddressBookView : public QWidget
@see KListView
*/
- void selected( const QString &uid );
+ void selected( const TQString &uid );
/**
This signal should be emitted by a subclass whenever an addressee
@@ -214,12 +214,12 @@ class KDE_EXPORT KAddressBookView : public QWidget
@see KListView
*/
- void executed( const QString &uid );
+ void executed( const TQString &uid );
/**
This signal is emitted whenever a user attempts to start a drag
in the view. The slot connected to this signal would usually want
- to create a QDragObject.
+ to create a TQDragObject.
*/
void startDrag();
@@ -228,7 +228,7 @@ class KDE_EXPORT KAddressBookView : public QWidget
view. The individual view should handle checking if the item is
droppable (ie: if it is a vcard).
*/
- void dropped( QDropEvent* );
+ void dropped( TQDropEvent* );
/**
This signal is emitted whenever the sort field changed.
@@ -255,7 +255,7 @@ class KDE_EXPORT KAddressBookView : public QWidget
'this', the view subclass has the option of placing other widgets
around the view (ie: search fields, etc). Do not delete this widget!
*/
- QWidget *viewWidget();
+ TQWidget *viewWidget();
private slots:
void updateView();
@@ -265,30 +265,30 @@ class KDE_EXPORT KAddressBookView : public QWidget
DefaultFilterType mDefaultFilterType;
Filter mFilter;
- QString mDefaultFilterName;
+ TQString mDefaultFilterName;
KAB::Core *mCore;
KABC::Field::List mFieldList;
- QWidget *mViewWidget;
+ TQWidget *mViewWidget;
};
class KDE_EXPORT ViewFactory : public KLibFactory
{
public:
- virtual KAddressBookView *view( KAB::Core *core, QWidget *parent,
+ virtual KAddressBookView *view( KAB::Core *core, TQWidget *parent,
const char *name = 0 ) = 0;
/**
@return The type of the view. This is normally a small one word
string (ie: Table, Icon, Tree, etc).
*/
- virtual QString type() const = 0;
+ virtual TQString type() const = 0;
/**
@return The description of the view. This should be a 3 to
4 line string (don't actually use return characters in the string)
describing the features offered by the view.
*/
- virtual QString description() const = 0;
+ virtual TQString description() const = 0;
/**
Creates a config dialog for the view type. The default
@@ -300,12 +300,12 @@ class KDE_EXPORT ViewFactory : public KLibFactory
<B>not</B> be called.
*/
virtual ViewConfigureWidget *configureWidget( KABC::AddressBook *ab,
- QWidget *parent,
+ TQWidget *parent,
const char *name = 0 );
protected:
- virtual QObject* createObject( QObject*, const char*, const char*,
- const QStringList & )
+ virtual TQObject* createObject( TQObject*, const char*, const char*,
+ const TQStringList & )
{
return 0;
}