summaryrefslogtreecommitdiffstats
path: root/kresources/kolab/knotes
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kresources/kolab/knotes
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/kolab/knotes')
-rw-r--r--kresources/kolab/knotes/resourcekolab.cpp36
-rw-r--r--kresources/kolab/knotes/resourcekolab.h8
2 files changed, 22 insertions, 22 deletions
diff --git a/kresources/kolab/knotes/resourcekolab.cpp b/kresources/kolab/knotes/resourcekolab.cpp
index d917d0ac..38f67087 100644
--- a/kresources/kolab/knotes/resourcekolab.cpp
+++ b/kresources/kolab/knotes/resourcekolab.cpp
@@ -52,7 +52,7 @@ static const char* inlineMimeType = "text/calendar";
ResourceKolab::ResourceKolab( const KConfig *config )
: ResourceNotes( config ), ResourceKolabBase( "ResourceKolab-KNotes" ),
- mCalendar( TQString::fromLatin1("UTC") )
+ mCalendar( TQString::tqfromLatin1("UTC") )
{
if ( !config ) {
setResourceName( i18n( "Kolab Server" ) );
@@ -105,7 +105,7 @@ bool ResourceKolab::loadSubResource( const TQString& subResource,
return false;
}
- TQMap<Q_UINT32, TQString> lst;
+ TQMap<TQ_UINT32, TQString> lst;
if( !kmailIncidences( lst, mimetype, subResource, 0, count ) ) {
kdError(5500) << "Communication problem in "
<< "ResourceKolab::getIncidenceList()\n";
@@ -117,7 +117,7 @@ bool ResourceKolab::loadSubResource( const TQString& subResource,
// Populate with the new entries
const bool silent = mSilent;
mSilent = true;
- TQMap<Q_UINT32, TQString>::ConstIterator it;
+ TQMap<TQ_UINT32, TQString>::ConstIterator it;
for ( it = lst.constBegin(); it != lst.constEnd(); ++it ) {
KCal::Journal* journal = addNote( it.data(), subResource, it.key(), mimetype );
if ( !journal )
@@ -164,7 +164,7 @@ bool ResourceKolab::addNote( KCal::Journal* journal )
}
KCal::Journal* ResourceKolab::addNote( const TQString& data, const TQString& subresource,
- Q_UINT32 sernum, const TQString &mimetype )
+ TQ_UINT32 sernum, const TQString &mimetype )
{
KCal::Journal *journal = 0;
@@ -178,12 +178,12 @@ KCal::Journal* ResourceKolab::addNote( const TQString& data, const TQString& sub
Q_ASSERT( journal );
bool addedOk = journal &&
- !mUidMap.contains( journal->uid() ) &&
+ !mUidMap.tqcontains( journal->uid() ) &&
addNote( journal, subresource, sernum );
// for debugging
- if ( journal && mUidMap.contains( journal->uid() ) ) {
- kdDebug(5500) << "mUidMap already contains " << journal->uid() << endl;
+ if ( journal && mUidMap.tqcontains( journal->uid() ) ) {
+ kdDebug(5500) << "mUidMap already tqcontains " << journal->uid() << endl;
}
if ( !addedOk ) {
@@ -194,7 +194,7 @@ KCal::Journal* ResourceKolab::addNote( const TQString& data, const TQString& sub
return journal;
}
-bool ResourceKolab::addNote( KCal::Journal *journal, const TQString &subresource, Q_UINT32 sernum )
+bool ResourceKolab::addNote( KCal::Journal *journal, const TQString &subresource, TQ_UINT32 sernum )
{
kdDebug(5500) << "ResourceKolab::addNote( KCal::Journal*, '" << subresource << "', " << sernum << " )\n";
@@ -232,7 +232,7 @@ bool ResourceKolab::addNote( KCal::Journal *journal, const TQString &subresource
bool ResourceKolab::deleteNote( KCal::Journal* journal )
{
const TQString uid = journal->uid();
- if ( !mUidMap.contains( uid ) )
+ if ( !mUidMap.tqcontains( uid ) )
// Odd
return false;
@@ -270,8 +270,8 @@ KCal::Alarm::List ResourceKolab::alarms( const TQDateTime& from, const TQDateTim
void ResourceKolab::incidenceUpdated( KCal::IncidenceBase* i )
{
TQString subResource;
- Q_UINT32 sernum;
- if ( mUidMap.contains( i->uid() ) ) {
+ TQ_UINT32 sernum;
+ if ( mUidMap.tqcontains( i->uid() ) ) {
subResource = mUidMap[ i->uid() ].resource();
sernum = mUidMap[ i->uid() ].serialNumber();
} else { // can this happen?
@@ -293,7 +293,7 @@ void ResourceKolab::incidenceUpdated( KCal::IncidenceBase* i )
*/
bool ResourceKolab::fromKMailAddIncidence( const TQString& type,
const TQString& subResource,
- Q_UINT32 sernum,
+ TQ_UINT32 sernum,
int format,
const TQString& note )
{
@@ -352,7 +352,7 @@ void ResourceKolab::fromKMailAddSubresource( const TQString& type,
// Not ours
return;
- if ( mSubResources.contains( subResource ) )
+ if ( mSubResources.tqcontains( subResource ) )
// Already registered
return;
@@ -372,7 +372,7 @@ void ResourceKolab::fromKMailDelSubresource( const TQString& type,
// Not ours
return;
- if ( !mSubResources.contains( subResource ) )
+ if ( !mSubResources.tqcontains( subResource ) )
// Not registered
return;
@@ -408,7 +408,7 @@ void ResourceKolab::fromKMailDelSubresource( const TQString& type,
emit signalSubresourceRemoved( this, type, subResource );
}
-void ResourceKolab::fromKMailAsyncLoadResult( const TQMap<Q_UINT32, TQString>& map,
+void ResourceKolab::fromKMailAsyncLoadResult( const TQMap<TQ_UINT32, TQString>& map,
const TQString& type,
const TQString& folder )
{
@@ -422,7 +422,7 @@ void ResourceKolab::fromKMailAsyncLoadResult( const TQMap<Q_UINT32, TQString>& m
mimetype = attachmentMimeType;
else
mimetype = inlineMimeType;
- for( TQMap<Q_UINT32, TQString>::ConstIterator it = map.constBegin(); it != map.constEnd(); ++it ) {
+ for( TQMap<TQ_UINT32, TQString>::ConstIterator it = map.constBegin(); it != map.constEnd(); ++it ) {
KCal::Journal* journal = addNote( it.data(), folder, it.key(), mimetype );
if ( !journal )
kdDebug(5500) << "loading note " << it.key() << " failed" << endl;
@@ -440,7 +440,7 @@ TQStringList ResourceKolab::subresources() const
bool ResourceKolab::subresourceActive( const TQString& res ) const
{
- if ( mSubResources.contains( res ) ) {
+ if ( mSubResources.tqcontains( res ) ) {
return mSubResources[ res ].active();
}
@@ -452,7 +452,7 @@ bool ResourceKolab::subresourceActive( const TQString& res ) const
bool ResourceKolab::subresourceWritable( const TQString& res ) const
{
- if ( mSubResources.contains( res ) ) {
+ if ( mSubResources.tqcontains( res ) ) {
return mSubResources[ res ].writable();
}
diff --git a/kresources/kolab/knotes/resourcekolab.h b/kresources/kolab/knotes/resourcekolab.h
index 6ff994cc..cfeeb0eb 100644
--- a/kresources/kolab/knotes/resourcekolab.h
+++ b/kresources/kolab/knotes/resourcekolab.h
@@ -81,7 +81,7 @@ public:
/// The ResourceKolabBase methods called by KMail
bool fromKMailAddIncidence( const TQString& type, const TQString& resource,
- Q_UINT32 sernum, int format, const TQString& note );
+ TQ_UINT32 sernum, int format, const TQString& note );
void fromKMailDelIncidence( const TQString& type, const TQString& resource,
const TQString& uid );
void fromKMailRefresh( const TQString& type, const TQString& resource );
@@ -92,7 +92,7 @@ public:
bool alarmRelevant );
void fromKMailDelSubresource( const TQString& type, const TQString& resource );
- void fromKMailAsyncLoadResult( const TQMap<Q_UINT32, TQString>& map,
+ void fromKMailAsyncLoadResult( const TQMap<TQ_UINT32, TQString>& map,
const TQString& type,
const TQString& folder );
@@ -111,9 +111,9 @@ signals:
private:
bool addNote( KCal::Journal* journal, const TQString& resource,
- Q_UINT32 sernum );
+ TQ_UINT32 sernum );
KCal::Journal* addNote( const TQString& data, const TQString& subresource,
- Q_UINT32 sernum, const TQString &mimetype );
+ TQ_UINT32 sernum, const TQString &mimetype );
bool loadSubResource( const TQString& resource, const TQString& mimetype );