summaryrefslogtreecommitdiffstats
path: root/kitchensync/libqopensync/syncchange.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kitchensync/libqopensync/syncchange.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kitchensync/libqopensync/syncchange.cpp')
-rw-r--r--kitchensync/libqopensync/syncchange.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kitchensync/libqopensync/syncchange.cpp b/kitchensync/libqopensync/syncchange.cpp
index f64ef6493..5dd72d7ff 100644
--- a/kitchensync/libqopensync/syncchange.cpp
+++ b/kitchensync/libqopensync/syncchange.cpp
@@ -44,42 +44,42 @@ bool SyncChange::isValid() const
return ( mSyncChange != 0 );
}
-void SyncChange::setUid( const QString &uid )
+void SyncChange::setUid( const TQString &uid )
{
osync_change_set_uid( mSyncChange, uid.utf8() );
}
-QString SyncChange::uid() const
+TQString SyncChange::uid() const
{
- return QString::fromUtf8( osync_change_get_uid( mSyncChange ) );
+ return TQString::fromUtf8( osync_change_get_uid( mSyncChange ) );
}
-void SyncChange::setHash( const QString &hash )
+void SyncChange::setHash( const TQString &hash )
{
osync_change_set_hash( mSyncChange, hash.utf8() );
}
-QString SyncChange::hash() const
+TQString SyncChange::hash() const
{
- return QString::fromUtf8( osync_change_get_hash( mSyncChange ) );
+ return TQString::fromUtf8( osync_change_get_hash( mSyncChange ) );
}
-void SyncChange::setData( const QString &data )
+void SyncChange::setData( const TQString &data )
{
osync_change_set_data( mSyncChange, const_cast<char*>( data.utf8().data() ), data.utf8().size(), true );
}
-QString SyncChange::data() const
+TQString SyncChange::data() const
{
int size = osync_change_get_datasize( mSyncChange );
- QString content;
+ TQString content;
if ( objectFormatName() == "file" ) {
fileFormat *format = (fileFormat*)osync_change_get_data( mSyncChange );
if ( format )
- content = QString::fromUtf8( format->data, format->size );
+ content = TQString::fromUtf8( format->data, format->size );
} else
- content = QString::fromUtf8( osync_change_get_data( mSyncChange ), size );
+ content = TQString::fromUtf8( osync_change_get_data( mSyncChange ), size );
return content;
}
@@ -89,12 +89,12 @@ bool SyncChange::hasData() const
return osync_change_has_data( mSyncChange );
}
-QString SyncChange::objectFormatName() const
+TQString SyncChange::objectFormatName() const
{
OSyncObjFormat *format = osync_change_get_objformat( mSyncChange );
Q_ASSERT( format );
- return QString::fromUtf8( osync_objformat_get_name( format ) );
+ return TQString::fromUtf8( osync_objformat_get_name( format ) );
}
Member SyncChange::member() const