summaryrefslogtreecommitdiffstats
path: root/kitchensync/libqopensync/group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/libqopensync/group.cpp')
-rw-r--r--kitchensync/libqopensync/group.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kitchensync/libqopensync/group.cpp b/kitchensync/libqopensync/group.cpp
index 75beab90c..bc94e2208 100644
--- a/kitchensync/libqopensync/group.cpp
+++ b/kitchensync/libqopensync/group.cpp
@@ -20,8 +20,8 @@
*/
/** hack includes **/
-#include <qdom.h>
-#include <qfile.h>
+#include <tqdom.h>
+#include <tqfile.h>
/** hack includes **/
#include <opensync/opensync.h>
@@ -42,31 +42,31 @@ GroupConfig::GroupConfig()
{
}
-QStringList GroupConfig::activeObjectTypes() const
+TQStringList GroupConfig::activeObjectTypes() const
{
Q_ASSERT( mGroup );
- const QString fileName = QString( "%1/filter.conf" ).arg( osync_group_get_configdir( mGroup ) );
+ const TQString fileName = TQString( "%1/filter.conf" ).arg( osync_group_get_configdir( mGroup ) );
- QFile file( fileName );
+ TQFile file( fileName );
if ( !file.open( IO_ReadOnly ) )
- return QStringList();
+ return TQStringList();
- QDomDocument document;
+ TQDomDocument document;
- QString message;
+ TQString message;
if ( !document.setContent( &file, &message ) ) {
qDebug( "Error on loading %s: %s", fileName.latin1(), message.latin1() );
- return QStringList();
+ return TQStringList();
}
file.close();
- QStringList objectTypes;
+ TQStringList objectTypes;
- QDomElement element = document.documentElement();
- QDomNode node = element.firstChild();
+ TQDomElement element = document.documentElement();
+ TQDomNode node = element.firstChild();
while ( !node.isNull() ) {
- QDomElement childElement = node.toElement();
+ TQDomElement childElement = node.toElement();
if ( !childElement.isNull() )
objectTypes.append( childElement.tagName() );
@@ -76,30 +76,30 @@ QStringList GroupConfig::activeObjectTypes() const
return objectTypes;
}
-void GroupConfig::setActiveObjectTypes( const QStringList &objectTypes )
+void GroupConfig::setActiveObjectTypes( const TQStringList &objectTypes )
{
Q_ASSERT( mGroup );
- QDomDocument document( "Filter" );
+ TQDomDocument document( "Filter" );
document.appendChild( document.createProcessingInstruction(
"xml", "version=\"1.0\" encoding=\"UTF-8\"" ) );
- QDomElement element = document.createElement( "filter" );
+ TQDomElement element = document.createElement( "filter" );
document.appendChild( element );
for ( uint i = 0; i < objectTypes.count(); ++i ) {
- QDomElement entry = document.createElement( objectTypes[ i ] );
+ TQDomElement entry = document.createElement( objectTypes[ i ] );
element.appendChild( entry );
}
- const QString fileName = QString( "%1/filter.conf" ).arg( osync_group_get_configdir( mGroup ) );
+ const TQString fileName = TQString( "%1/filter.conf" ).arg( osync_group_get_configdir( mGroup ) );
- QFile file( fileName );
+ TQFile file( fileName );
if ( !file.open( IO_WriteOnly ) )
return;
- QTextStream s( &file );
- s.setEncoding( QTextStream::UnicodeUTF8 );
+ TQTextStream s( &file );
+ s.setEncoding( TQTextStream::UnicodeUTF8 );
s << document.toString();
file.close();
}
@@ -135,21 +135,21 @@ Group::Iterator Group::end()
return it;
}
-void Group::setName( const QString &name )
+void Group::setName( const TQString &name )
{
Q_ASSERT( mGroup );
osync_group_set_name( mGroup, name.latin1() );
}
-QString Group::name() const
+TQString Group::name() const
{
Q_ASSERT( mGroup );
- return QString::fromLatin1( osync_group_get_name( mGroup ) );
+ return TQString::fromLatin1( osync_group_get_name( mGroup ) );
}
-void Group::setLastSynchronization( const QDateTime &dateTime )
+void Group::setLastSynchronization( const TQDateTime &dateTime )
{
Q_ASSERT( mGroup );
@@ -157,11 +157,11 @@ void Group::setLastSynchronization( const QDateTime &dateTime )
osync_group_set_last_synchronization( mGroup, dateTime.toTime_t() );
}
-QDateTime Group::lastSynchronization() const
+TQDateTime Group::lastSynchronization() const
{
Q_ASSERT( mGroup );
- QDateTime dateTime;
+ TQDateTime dateTime;
time_t time = osync_group_get_last_synchronization( mGroup );
if ( time != 0 )
dateTime.setTime_t( time );
@@ -269,14 +269,14 @@ Result Group::save()
return Result();
}
-void Group::setObjectTypeEnabled( const QString &objectType, bool enabled )
+void Group::setObjectTypeEnabled( const TQString &objectType, bool enabled )
{
Q_ASSERT( mGroup );
osync_group_set_objtype_enabled( mGroup, objectType.utf8(), enabled );
}
-bool Group::isObjectTypeEnabled( const QString &objectType ) const
+bool Group::isObjectTypeEnabled( const TQString &objectType ) const
{
return osync_group_objtype_enabled( mGroup, objectType.utf8() );
}