summaryrefslogtreecommitdiffstats
path: root/korganizer/kogroupware.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kogroupware.cpp')
-rw-r--r--korganizer/kogroupware.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/korganizer/kogroupware.cpp b/korganizer/kogroupware.cpp
index d788abdd..7b017cc4 100644
--- a/korganizer/kogroupware.cpp
+++ b/korganizer/kogroupware.cpp
@@ -48,10 +48,10 @@
#include <kmessagebox.h>
#include <kstandarddirs.h>
#include <kdirwatch.h>
-#include <qfile.h>
-#include <qregexp.h>
-#include <qdir.h>
-#include <qtimer.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqdir.h>
+#include <tqtimer.h>
FreeBusyManager *KOGroupware::mFreeBusyManager = 0;
@@ -74,7 +74,7 @@ KOGroupware *KOGroupware::instance()
KOGroupware::KOGroupware( CalendarView* view, KCal::CalendarResources* cal )
- : QObject( 0, "kmgroupware_instance" ), mView( view ), mCalendar( cal )
+ : TQObject( 0, "kmgroupware_instance" ), mView( view ), mCalendar( cal )
{
// Set up the dir watch of the three incoming dirs
KDirWatch* watcher = KDirWatch::self();
@@ -84,10 +84,10 @@ KOGroupware *KOGroupware::instance()
watcher->addDir( locateLocal( "data", "korganizer/income.cancel/" ) );
watcher->addDir( locateLocal( "data", "korganizer/income.reply/" ) );
watcher->addDir( locateLocal( "data", "korganizer/income.delegated/" ) );
- connect( watcher, SIGNAL( dirty( const QString& ) ),
- this, SLOT( incomingDirChanged( const QString& ) ) );
+ connect( watcher, TQT_SIGNAL( dirty( const TQString& ) ),
+ this, TQT_SLOT( incomingDirChanged( const TQString& ) ) );
// Now set the ball rolling
- QTimer::singleShot( 0, this, SLOT(initialCheckForChanges()) );
+ TQTimer::singleShot( 0, this, TQT_SLOT(initialCheckForChanges()) );
}
void KOGroupware::initialCheckForChanges()
@@ -103,14 +103,14 @@ void KOGroupware::initialCheckForChanges()
void KOGroupware::slotViewNewIncidenceChanger( IncidenceChangerBase* changer )
{
// Call slot perhapsUploadFB if an incidence was added, changed or removed
- connect( changer, SIGNAL( incidenceAdded( Incidence* ) ),
- mFreeBusyManager, SLOT( slotPerhapsUploadFB() ) );
- connect( changer, SIGNAL( incidenceChanged( Incidence*, Incidence*, int ) ),
- mFreeBusyManager, SLOT( slotPerhapsUploadFB() ) );
- connect( changer, SIGNAL( incidenceChanged( Incidence*, Incidence* ) ),
- mFreeBusyManager, SLOT( slotPerhapsUploadFB() ) ) ;
- connect( changer, SIGNAL( incidenceDeleted( Incidence * ) ),
- mFreeBusyManager, SLOT( slotPerhapsUploadFB() ) );
+ connect( changer, TQT_SIGNAL( incidenceAdded( Incidence* ) ),
+ mFreeBusyManager, TQT_SLOT( slotPerhapsUploadFB() ) );
+ connect( changer, TQT_SIGNAL( incidenceChanged( Incidence*, Incidence*, int ) ),
+ mFreeBusyManager, TQT_SLOT( slotPerhapsUploadFB() ) );
+ connect( changer, TQT_SIGNAL( incidenceChanged( Incidence*, Incidence* ) ),
+ mFreeBusyManager, TQT_SLOT( slotPerhapsUploadFB() ) ) ;
+ connect( changer, TQT_SIGNAL( incidenceDeleted( Incidence * ) ),
+ mFreeBusyManager, TQT_SLOT( slotPerhapsUploadFB() ) );
}
FreeBusyManager *KOGroupware::freeBusyManager()
@@ -118,52 +118,52 @@ FreeBusyManager *KOGroupware::freeBusyManager()
if ( !mFreeBusyManager ) {
mFreeBusyManager = new FreeBusyManager( this, "freebusymanager" );
mFreeBusyManager->setCalendar( mCalendar );
- connect( mCalendar, SIGNAL( calendarChanged() ),
- mFreeBusyManager, SLOT( slotPerhapsUploadFB() ) );
- connect( mView, SIGNAL( newIncidenceChanger( IncidenceChangerBase* ) ),
- this, SLOT( slotViewNewIncidenceChanger( IncidenceChangerBase* ) ) );
+ connect( mCalendar, TQT_SIGNAL( calendarChanged() ),
+ mFreeBusyManager, TQT_SLOT( slotPerhapsUploadFB() ) );
+ connect( mView, TQT_SIGNAL( newIncidenceChanger( IncidenceChangerBase* ) ),
+ this, TQT_SLOT( slotViewNewIncidenceChanger( IncidenceChangerBase* ) ) );
slotViewNewIncidenceChanger( mView->incidenceChanger() );
}
return mFreeBusyManager;
}
-void KOGroupware::incomingDirChanged( const QString& path )
+void KOGroupware::incomingDirChanged( const TQString& path )
{
- const QString incomingDirName = locateLocal( "data","korganizer/" )
+ const TQString incomingDirName = locateLocal( "data","korganizer/" )
+ "income.";
if ( !path.startsWith( incomingDirName ) ) {
kdDebug(5850) << "incomingDirChanged: Wrong dir " << path << endl;
return;
}
- QString action = path.mid( incomingDirName.length() );
+ TQString action = path.mid( incomingDirName.length() );
while ( action.length() > 0 && action[ action.length()-1 ] == '/' )
// Strip slashes at the end
action.truncate( action.length()-1 );
// Handle accepted invitations
- QDir dir( path );
- const QStringList files = dir.entryList( QDir::Files );
+ TQDir dir( path );
+ const TQStringList files = dir.entryList( TQDir::Files );
if ( files.isEmpty() )
// No more files here
return;
// Read the file and remove it
- QFile f( path + "/" + files[0] );
+ TQFile f( path + "/" + files[0] );
if (!f.open(IO_ReadOnly)) {
kdError(5850) << "Can't open file '" << files[0] << "'" << endl;
return;
}
- QTextStream t(&f);
- t.setEncoding( QTextStream::UnicodeUTF8 );
- QString receiver = KPIM::getFirstEmailAddress( t.readLine() );
- QString iCal = t.read();
+ TQTextStream t(&f);
+ t.setEncoding( TQTextStream::UnicodeUTF8 );
+ TQString receiver = KPIM::getFirstEmailAddress( t.readLine() );
+ TQString iCal = t.read();
f.remove();
ScheduleMessage *message = mFormat.parseScheduleMessage( mCalendar, iCal );
if ( !message ) {
- QString errorMessage;
+ TQString errorMessage;
if (mFormat.exception())
errorMessage = i18n( "Error message: %1" ).arg( mFormat.exception()->message() );
kdDebug(5850) << "MailScheduler::retrieveTransactions() Error parsing "
@@ -227,7 +227,7 @@ void KOGroupware::incomingDirChanged( const QString& path )
class KOInvitationFormatterHelper : public InvitationFormatterHelper
{
public:
- virtual QString generateLinkURL( const QString &id ) { return "kmail:groupware_request_" + id; }
+ virtual TQString generateLinkURL( const TQString &id ) { return "kmail:groupware_request_" + id; }
};
/* This function sends mails if necessary, and makes sure the user really
@@ -236,7 +236,7 @@ class KOInvitationFormatterHelper : public InvitationFormatterHelper
* Return true means accept the changes
* Return false means revert the changes
*/
-bool KOGroupware::sendICalMessage( QWidget* parent,
+bool KOGroupware::sendICalMessage( TQWidget* parent,
KCal::Scheduler::Method method,
Incidence* incidence, bool isDeleting,
bool statusChanged )
@@ -267,12 +267,12 @@ bool KOGroupware::sendICalMessage( QWidget* parent,
* mail. */
if ( incidence->attendees().count() > 1
|| incidence->attendees().first()->email() != incidence->organizer().email() ) {
- QString type;
+ TQString type;
if( incidence->type() == "Event") type = i18n("event");
else if( incidence->type() == "Todo" ) type = i18n("task");
else if( incidence->type() == "Journal" ) type = i18n("journal entry");
else type = incidence->type();
- QString txt = i18n( "This %1 includes other people. "
+ TQString txt = i18n( "This %1 includes other people. "
"Should email be sent out to the attendees?" )
.arg( type );
rc = KMessageBox::questionYesNoCancel( parent, txt,
@@ -286,17 +286,17 @@ bool KOGroupware::sendICalMessage( QWidget* parent,
method = Scheduler::Reply;
// Ask if the user wants to tell the organizer about the current status
- QString txt = i18n( "Do you want to send a status update to the "
+ TQString txt = i18n( "Do you want to send a status update to the "
"organizer of this task?");
- rc = KMessageBox::questionYesNo( parent, txt, QString::null, i18n("Send Update"), i18n("Do Not Send") );
+ rc = KMessageBox::questionYesNo( parent, txt, TQString::null, i18n("Send Update"), i18n("Do Not Send") );
} else if( incidence->type() == "Event" ) {
- QString txt;
+ TQString txt;
if ( statusChanged && method == Scheduler::Request ) {
txt = i18n( "Your status as an attendee of this event "
"changed. Do you want to send a status update to the "
"organizer of this event?" );
method = Scheduler::Reply;
- rc = KMessageBox::questionYesNo( parent, txt, QString::null, i18n("Send Update"), i18n("Do Not Send") );
+ rc = KMessageBox::questionYesNo( parent, txt, TQString::null, i18n("Send Update"), i18n("Do Not Send") );
} else {
if( isDeleting )
txt = i18n( "You are not the organizer of this event. "