summaryrefslogtreecommitdiffstats
path: root/libkcal/tests/testfields.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /libkcal/tests/testfields.cpp
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'libkcal/tests/testfields.cpp')
-rw-r--r--libkcal/tests/testfields.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/libkcal/tests/testfields.cpp b/libkcal/tests/testfields.cpp
index 6e63faa98..cc835927b 100644
--- a/libkcal/tests/testfields.cpp
+++ b/libkcal/tests/testfields.cpp
@@ -50,18 +50,18 @@ int main(int argc,char **argv)
Q_UNUSED(args)
- CalendarLocal cal( TQString::fromLatin1("UTC") );
+ CalendarLocal cal( TQString::tqfromLatin1("UTC") );
- TQString file = TQString::fromLatin1( INPUT );
+ TQString file = TQString::tqfromLatin1( INPUT );
if (!cal.load( file ) ) {
kdError() << "Can't load " << file << endl;
return 1;
}
- // 2 tests... first uid should result in a syncStatus of 0. second uid
- // should have a new summary and a 1 for syncStatus.
- TQString uid1 = TQString::fromLatin1("KOrganizer-1345486115.965");
- TQString uid2 = TQString::fromLatin1("KOrganizer-1345486115.967");
+ // 2 tests... first uid should result in a synctqStatus of 0. second uid
+ // should have a new summary and a 1 for synctqStatus.
+ TQString uid1 = TQString::tqfromLatin1("KOrganizer-1345486115.965");
+ TQString uid2 = TQString::tqfromLatin1("KOrganizer-1345486115.967");
Event *e = cal.event( uid1 );
if (!e) {
@@ -78,7 +78,7 @@ int main(int argc,char **argv)
if (e->pilotId()) {
kdDebug() << "Pilot ID = " << e->pilotId() << endl;
- kdDebug() << "Pilot Sync Status = " << e->syncStatus() << endl;
+ kdDebug() << "Pilot Sync Status = " << e->synctqStatus() << endl;
} else {
kdError() << "No Pilot ID" << endl;
return 1;
@@ -86,9 +86,9 @@ int main(int argc,char **argv)
kdDebug() << "First test passed. Able to read fields." << endl;
- e->setSyncStatus(KCal::Incidence::SYNCNONE);
+ e->setSynctqStatus(KCal::Incidence::SYNCNONE);
- TQString newSummary = TQString::fromLatin1("Mooo summary");
+ TQString newSummary = TQString::tqfromLatin1("Mooo summary");
Event *f = new Event(*e);
@@ -112,7 +112,7 @@ int main(int argc,char **argv)
// now try to read the file back in and see if our changes made it
- CalendarLocal cal2( TQString::fromLatin1("UTC") );
+ CalendarLocal cal2( TQString::tqfromLatin1("UTC") );
if (!cal2.load( filew ) ) {
kdError() << "Can't load " << filew << endl;
return 1;
@@ -120,7 +120,7 @@ int main(int argc,char **argv)
TQFile::remove( filew );
- // check for uid1--should have syncStatus of 0
+ // check for uid1--should have synctqStatus of 0
e = cal2.event( uid1 );
if (!e) {
kdError() << "No event for first read test" << uid1 << endl;
@@ -131,13 +131,13 @@ int main(int argc,char **argv)
if (e->pilotId()) {
kdDebug() << "First Pilot ID = " << e->pilotId() << endl;
- kdDebug() << "First Pilot Sync Status = " << e->syncStatus() << endl;
+ kdDebug() << "First Pilot Sync Status = " << e->synctqStatus() << endl;
} else {
kdError() << "No Pilot ID for first test" << endl;
return 1;
}
- if (e->syncStatus() != KCal::Incidence::SYNCNONE) {
+ if (e->synctqStatus() != KCal::Incidence::SYNCNONE) {
kdError() << "Wrong Pilot sync status." << endl;
return 1;
}
@@ -154,13 +154,13 @@ int main(int argc,char **argv)
if (f->pilotId()) {
kdDebug() << "Second Pilot ID = " << f->pilotId() << endl;
- kdDebug() << "Second Pilot Sync Status = " << f->syncStatus() << endl;
+ kdDebug() << "Second Pilot Sync Status = " << f->synctqStatus() << endl;
} else {
kdError() << "No Pilot ID for second read test" << endl;
return 1;
}
- if (f->syncStatus() != KCal::Incidence::SYNCMOD) {
+ if (f->synctqStatus() != KCal::Incidence::SYNCMOD) {
kdError() << "Wrong Pilot sync status for second read test." << endl;
return 1;
}