author | zecke <zecke> | 2002-09-23 21:38:23 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-23 21:38:23 (UTC) |
commit | e0b04701b3c9182ba22f56e329f98c57af4e1fe2 (patch) (side-by-side diff) | |
tree | d5fa6fbae48d61aca7fefc09375fdcaf99ef4cb5 /libopie/pim | |
parent | 47e87e10fada298a1027cf20d4d7f31a66dc1359 (diff) | |
download | opie-e0b04701b3c9182ba22f56e329f98c57af4e1fe2.zip opie-e0b04701b3c9182ba22f56e329f98c57af4e1fe2.tar.gz opie-e0b04701b3c9182ba22f56e329f98c57af4e1fe2.tar.bz2 |
Updates
-rw-r--r-- | libopie/pim/opimrecord.cpp | 3 | ||||
-rw-r--r-- | libopie/pim/orecordlist.h | 2 | ||||
-rw-r--r-- | libopie/pim/otodo.cpp | 4 | ||||
-rw-r--r-- | libopie/pim/otodoaccess.cpp | 4 | ||||
-rw-r--r-- | libopie/pim/otodoaccessxml.cpp | 20 |
5 files changed, 20 insertions, 13 deletions
diff --git a/libopie/pim/opimrecord.cpp b/libopie/pim/opimrecord.cpp index 60cdbf3..62dc353 100644 --- a/libopie/pim/opimrecord.cpp +++ b/libopie/pim/opimrecord.cpp @@ -124,3 +124,3 @@ QString OPimRecord::crossToString()const { void OPimRecord::setUid( int uid ) { - +// qWarning("setting uid" ); if ( uid == 1) @@ -128,2 +128,3 @@ void OPimRecord::setUid( int uid ) { +// qWarning(" uid %d", uid); Qtopia::Record::setUid( uid ); diff --git a/libopie/pim/orecordlist.h b/libopie/pim/orecordlist.h index 36728b8..1795938 100644 --- a/libopie/pim/orecordlist.h +++ b/libopie/pim/orecordlist.h @@ -73,2 +73,4 @@ public: */ + ORecordList () { + } ORecordList( const QArray<int>& ids, diff --git a/libopie/pim/otodo.cpp b/libopie/pim/otodo.cpp index cc46b21..6dd4c0e 100644 --- a/libopie/pim/otodo.cpp +++ b/libopie/pim/otodo.cpp @@ -163,3 +163,3 @@ void OTodo::setDescription(const QString &desc ) { - qWarning( "desc " + desc ); +// qWarning( "desc " + desc ); changeOrModify(); @@ -320,3 +320,3 @@ OTodo &OTodo::operator=(const OTodo &item ) { -// OPimRecord::operator=( item ); + OPimRecord::operator=( item ); //qWarning("operator= ref "); diff --git a/libopie/pim/otodoaccess.cpp b/libopie/pim/otodoaccess.cpp index a65cf5c..8ec09bc 100644 --- a/libopie/pim/otodoaccess.cpp +++ b/libopie/pim/otodoaccess.cpp @@ -17,3 +17,3 @@ OTodoAccess::OTodoAccess( OTodoAccessBackend* end ) OTodoAccess::~OTodoAccess() { - qWarning("~OTodoAccess"); +// qWarning("~OTodoAccess"); } @@ -65,3 +65,3 @@ void OTodoAccess::delAlarm( int uid) { // it should be fine -zecke - qWarning("Removing alarm for event with uid %d", uid ); +// qWarning("Removing alarm for event with uid %d", uid ); AlarmServer::deleteAlarm( schedule , diff --git a/libopie/pim/otodoaccessxml.cpp b/libopie/pim/otodoaccessxml.cpp index 3a72881..5fe733c 100644 --- a/libopie/pim/otodoaccessxml.cpp +++ b/libopie/pim/otodoaccessxml.cpp @@ -23,3 +23,3 @@ OTodoAccessXML::~OTodoAccessXML() { bool OTodoAccessXML::load() { - m_opened = false; + m_opened = true; m_changed = false; @@ -71,3 +71,3 @@ bool OTodoAccessXML::load() { }else { - qWarning("could not parse"); +// qWarning("could not parse"); return false;; @@ -76,4 +76,3 @@ bool OTodoAccessXML::load() { - m_opened = true; - qWarning("Access %d" + m_events.count() ); +// qWarning("Access %d" + m_events.count() ); return true; @@ -84,4 +83,7 @@ bool OTodoAccessXML::reload() { bool OTodoAccessXML::save() { - if (!m_opened || !m_changed ) +// qWarning("saving"); + if (!m_opened || !m_changed ) { +// qWarning("not saving"); return true; + } QString strNewFile = m_file + ".new"; @@ -124,3 +126,3 @@ bool OTodoAccessXML::save() { if( ::rename( strNewFile.latin1(), m_file.latin1() ) < 0 ) { - qWarning("error renaming"); +// qWarning("error renaming"); QFile::remove( strNewFile ); @@ -162,2 +164,3 @@ void OTodoAccessXML::clear() { bool OTodoAccessXML::add( const OTodo& todo ) { +// qWarning("add"); m_changed = true; @@ -219,3 +222,3 @@ QArray<int> OTodoAccessXML::overDue() { OTodo OTodoAccessXML::todo( QAsciiDict<int>* dict, Opie::XMLElement* element)const { - qWarning("parse to do from XMLElement" ); +// qWarning("parse to do from XMLElement" ); OTodo ev; @@ -230,3 +233,3 @@ OTodo OTodoAccessXML::todo( QAsciiDict<int>* dict, Opie::XMLElement* element)con if (!find ) { - qWarning("Unknown option" + it.key() ); +// qWarning("Unknown option" + it.key() ); ev.setCustomField( it.key(), it.data() ); @@ -322,2 +325,3 @@ QString OTodoAccessXML::toString( const OTodo& ev )const { } +// qWarning( "Uid %d", ev.uid() ); str += "Uid=\"" + QString::number( ev.uid() ) + "\" "; |