summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-02-21 12:25:50 (UTC)
committer mickeyl <mickeyl>2004-02-21 12:25:50 (UTC)
commit6155f1be5c19fc51a4929c9e173f9e5a24d193e6 (patch) (unidiff)
treec18ca863f82a559c60728f922519ac696387ec53
parenta570c2824fcecaf1c278e1b5a592fa14cc0647f8 (diff)
downloadopie-6155f1be5c19fc51a4929c9e173f9e5a24d193e6.zip
opie-6155f1be5c19fc51a4929c9e173f9e5a24d193e6.tar.gz
opie-6155f1be5c19fc51a4929c9e173f9e5a24d193e6.tar.bz2
the usual cosmetics
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--Rules.make2
-rw-r--r--libopie2/opiepim/core/oconversion.cpp39
-rw-r--r--libopie2/opiepim/core/oconversion.h7
-rw-r--r--libopie2/opiepim/core/opimcache.h10
-rw-r--r--libopie2/opiepim/core/opimmaintainer.cpp2
-rw-r--r--libopie2/opiepim/core/opimmaintainer.h5
-rw-r--r--libopie2/opiepim/core/opimresolver.cpp11
-rw-r--r--libopie2/opiepim/core/opimresolver.h12
-rw-r--r--libopie2/opiepim/core/opimstate.cpp5
-rw-r--r--libopie2/opiepim/core/opimstate.h7
-rw-r--r--libopie2/opiepim/core/opimxref.cpp12
-rw-r--r--libopie2/opiepim/core/opimxref.h10
-rw-r--r--libopie2/opiepim/core/opimxrefmanager.cpp14
-rw-r--r--libopie2/opiepim/core/opimxrefmanager.h9
-rw-r--r--libopie2/opiepim/core/opimxrefpartner.cpp12
-rw-r--r--libopie2/opiepim/core/opimxrefpartner.h3
-rw-r--r--libopie2/opiepim/core/orecur.cpp76
-rw-r--r--libopie2/opiepim/core/orecur.h11
-rw-r--r--libopie2/opiepim/core/otemplatebase.h9
-rw-r--r--libopie2/opiepim/core/otimezone.cpp88
-rw-r--r--libopie2/opiepim/core/otimezone.h11
-rw-r--r--libopie2/opieui/otabwidget.h6
-rw-r--r--libopie2/opieui/owait.cpp77
-rw-r--r--libopie2/opieui/owait.h57
24 files changed, 348 insertions, 147 deletions
diff --git a/Rules.make b/Rules.make
index 0360cc6..84b7dab 100644
--- a/Rules.make
+++ b/Rules.make
@@ -112,2 +112,4 @@ $(OPIEDIR)/stamp-headers :
112 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; ) 112 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/*.h .; )
113 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/*.h .; )
114 ( cd include/opie2 && ln -sf ../../libopie2/opiepim/core/backends/*.h .; )
113 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; ) 115 ( cd include/opie2 && ln -sf ../../libopie2/opieui/*.h .; )
diff --git a/libopie2/opiepim/core/oconversion.cpp b/libopie2/opiepim/core/oconversion.cpp
index b7eebef..160c2c6 100644
--- a/libopie2/opiepim/core/oconversion.cpp
+++ b/libopie2/opiepim/core/oconversion.cpp
@@ -2,3 +2,2 @@
2 This file is part of the Opie Project 2 This file is part of the Opie Project
3 Copyright (C) The Main Author <main-author@whereever.org>
4 =. Copyright (C) The Opie Team <opie-devel@handhelds.org> 3 =. Copyright (C) The Opie Team <opie-devel@handhelds.org>
@@ -29,2 +28,3 @@
29 28
29/* OPIE */
30#include <opie2/oconversion.h> 30#include <opie2/oconversion.h>
@@ -32,4 +32,4 @@
32 32
33 33namespace Opie
34namespace Opie { 34{
35 35
@@ -53,2 +53,3 @@ QString OConversion::dateToString( const QDate &d )
53 53
54
54QDate OConversion::dateFromString( const QString& s ) 55QDate OConversion::dateFromString( const QString& s )
@@ -73,3 +74,4 @@ QDate OConversion::dateFromString( const QString& s )
73 // but we isValid() again? -zecke 74 // but we isValid() again? -zecke
74 if ( year < 1900 || year > 3000 ) { 75 if ( year < 1900 || year > 3000 )
76 {
75 qWarning( "PimContact year is not in range"); 77 qWarning( "PimContact year is not in range");
@@ -77,3 +79,4 @@ QDate OConversion::dateFromString( const QString& s )
77 } 79 }
78 if ( month < 0 || month > 12 ) { 80 if ( month < 0 || month > 12 )
81 {
79 qWarning( "PimContact month is not in range"); 82 qWarning( "PimContact month is not in range");
@@ -81,3 +84,4 @@ QDate OConversion::dateFromString( const QString& s )
81 } 84 }
82 if ( day < 0 || day > 31 ) { 85 if ( day < 0 || day > 31 )
86 {
83 qWarning( "PimContact day is not in range"); 87 qWarning( "PimContact day is not in range");
@@ -87,3 +91,4 @@ QDate OConversion::dateFromString( const QString& s )
87 date.setYMD( year, month, day ); 91 date.setYMD( year, month, day );
88 if ( !date.isValid() ) { 92 if ( !date.isValid() )
93 {
89 qWarning( "PimContact date is not valid"); 94 qWarning( "PimContact date is not valid");
@@ -94,4 +99,8 @@ QDate OConversion::dateFromString( const QString& s )
94} 99}
95QString OConversion::dateTimeToString( const QDateTime& dt ) { 100
96 if (!dt.isValid() || dt.isNull() ) return QString::null; 101
102QString OConversion::dateTimeToString( const QDateTime& dt )
103{
104 if ( !dt.isValid() || dt.isNull() )
105 return QString::null;
97 106
@@ -111,9 +120,11 @@ QString OConversion::dateTimeToString( const QDateTime& dt ) {
111 120
112 QString str = day + month + year + hour + min + sec; 121 return day + month + year + hour + min + sec;
113
114 return str;
115} 122}
116QDateTime OConversion::dateTimeFromString( const QString& str) {
117 123
118 if ( str.isEmpty() ) return QDateTime(); 124
125QDateTime OConversion::dateTimeFromString( const QString& str )
126{
127
128 if ( str.isEmpty() )
129 return QDateTime();
119 int day = str.mid(0, 2).toInt(); 130 int day = str.mid(0, 2).toInt();
diff --git a/libopie2/opiepim/core/oconversion.h b/libopie2/opiepim/core/oconversion.h
index 3c4fdf3..eeb97e5 100644
--- a/libopie2/opiepim/core/oconversion.h
+++ b/libopie2/opiepim/core/oconversion.h
@@ -29,7 +29,6 @@
29 29
30#ifndef __oconversion_h__ 30#ifndef OCONVERSION_H
31#define __oconversion_h__ 31#define OCONVERSION_H
32 32
33/* #include <time.h> */ 33/* QT */
34/* #include <sys/types.h> */
35#include <qdatetime.h> 34#include <qdatetime.h>
diff --git a/libopie2/opiepim/core/opimcache.h b/libopie2/opiepim/core/opimcache.h
index e70a910..a033574 100644
--- a/libopie2/opiepim/core/opimcache.h
+++ b/libopie2/opiepim/core/opimcache.h
@@ -28,9 +28,11 @@
28*/ 28*/
29#ifndef OPIE_PIM_CACHE_H 29#ifndef OPIMCACHE_H
30#define OPIE_PIM_CACHE_H 30#define OPIMCACHE_H
31
32#include <qintcache.h>
33 31
32/* OPIE */
34#include <opie2/opimrecord.h> 33#include <opie2/opimrecord.h>
35 34
35/* QT */
36#include <qintcache.h>
37
36namespace Opie { 38namespace Opie {
diff --git a/libopie2/opiepim/core/opimmaintainer.cpp b/libopie2/opiepim/core/opimmaintainer.cpp
index b2eff12..b8d829a 100644
--- a/libopie2/opiepim/core/opimmaintainer.cpp
+++ b/libopie2/opiepim/core/opimmaintainer.cpp
@@ -29,3 +29,3 @@
29 29
30#include <opie2/opimmaintainer.h> 30#include "opimmaintainer.h"
31 31
diff --git a/libopie2/opiepim/core/opimmaintainer.h b/libopie2/opiepim/core/opimmaintainer.h
index 46bc9d2..e7e7eeb 100644
--- a/libopie2/opiepim/core/opimmaintainer.h
+++ b/libopie2/opiepim/core/opimmaintainer.h
@@ -28,5 +28,6 @@
28*/ 28*/
29#ifndef OPIE_PIM_MAINTAINER_H 29#ifndef OPIMMAINTAINER_H
30#define OPIE_PIM_MAINTAINER_H 30#define OPIMMAINTAINER_H
31 31
32/* QT */
32#include <qstring.h> 33#include <qstring.h>
diff --git a/libopie2/opiepim/core/opimresolver.cpp b/libopie2/opiepim/core/opimresolver.cpp
index eceabcb..73d7de1 100644
--- a/libopie2/opiepim/core/opimresolver.cpp
+++ b/libopie2/opiepim/core/opimresolver.cpp
@@ -28,11 +28,12 @@
28*/ 28*/
29#include <qcopchannel_qws.h>
30 29
31#include <qpe/qcopenvelope_qws.h> 30#include "opimresolver.h"
32 31
33#include <opie2/otodoaccess.h> 32/* OPIE */
34#include <opie2/ocontactaccess.h> 33#include <opie2/ocontactaccess.h>
34#include <opie2/otodoaccess.h>
35#include <qpe/qcopenvelope_qws.h>
35 36
36//#include "opimfactory.h" 37/* QT */
37#include <opie2/opimresolver.h> 38#include <qcopchannel_qws.h>
38 39
diff --git a/libopie2/opiepim/core/opimresolver.h b/libopie2/opiepim/core/opimresolver.h
index adc7c16..dd6f07f 100644
--- a/libopie2/opiepim/core/opimresolver.h
+++ b/libopie2/opiepim/core/opimresolver.h
@@ -28,5 +28,9 @@
28*/ 28*/
29#ifndef OPIE_PIM_RESOLVER 29#ifndef OPIMRESOLVER_H
30#define OPIE_PIM_RESOLVER 30#define OPIMRESOLVER_H
31 31
32/* OPIE */
33#include <opie2/otemplatebase.h>
34
35/* QT */
32#include <qstring.h> 36#include <qstring.h>
@@ -34,4 +38,2 @@
34 38
35#include <opie2/otemplatebase.h>
36
37namespace Opie { 39namespace Opie {
@@ -49,2 +51,3 @@ namespace Opie {
49class OPimResolver { 51class OPimResolver {
52
50public: 53public:
@@ -102,2 +105,3 @@ public:
102 OPimBase* backend( int rtti ); 105 OPimBase* backend( int rtti );
106
103private: 107private:
diff --git a/libopie2/opiepim/core/opimstate.cpp b/libopie2/opiepim/core/opimstate.cpp
index 1013a1c..8aff558 100644
--- a/libopie2/opiepim/core/opimstate.cpp
+++ b/libopie2/opiepim/core/opimstate.cpp
@@ -28,6 +28,7 @@
28*/ 28*/
29#include <qshared.h>
30
31#include "opimstate.h" 29#include "opimstate.h"
32 30
31/* QT */
32#include <qshared.h>
33
33namespace Opie { 34namespace Opie {
diff --git a/libopie2/opiepim/core/opimstate.h b/libopie2/opiepim/core/opimstate.h
index 78e8cd0..8336b3e 100644
--- a/libopie2/opiepim/core/opimstate.h
+++ b/libopie2/opiepim/core/opimstate.h
@@ -28,5 +28,6 @@
28*/ 28*/
29#ifndef OPIE_PIM_STATE_H 29#ifndef OPIMSTATE_H
30#define OPIE_PIM_STATE_H 30#define OPIMSTATE_H
31 31
32/* QT */
32#include <qstring.h> 33#include <qstring.h>
@@ -46,2 +47,3 @@ namespace Opie {
46class OPimState { 47class OPimState {
48
47public: 49public:
@@ -62,2 +64,3 @@ public:
62 int state()const; 64 int state()const;
65
63private: 66private:
diff --git a/libopie2/opiepim/core/opimxref.cpp b/libopie2/opiepim/core/opimxref.cpp
index 85d3345..f58ebb5 100644
--- a/libopie2/opiepim/core/opimxref.cpp
+++ b/libopie2/opiepim/core/opimxref.cpp
@@ -28,3 +28,3 @@
28*/ 28*/
29#include <opie2/opimxref.h> 29#include "opimxref.h"
30 30
@@ -38,4 +38,3 @@ OPimXRef::OPimXRef( const OPimXRefPartner& one, const OPimXRefPartner& two )
38} 38}
39OPimXRef::OPimXRef() 39OPimXRef::OPimXRef():m_partners(2)
40 : m_partners(2)
41{ 40{
@@ -43,2 +42,3 @@ OPimXRef::OPimXRef()
43} 42}
43
44OPimXRef::OPimXRef( const OPimXRef& ref) { 44OPimXRef::OPimXRef( const OPimXRef& ref) {
@@ -46,4 +46,6 @@ OPimXRef::OPimXRef( const OPimXRef& ref) {
46} 46}
47
47OPimXRef::~OPimXRef() { 48OPimXRef::~OPimXRef() {
48} 49}
50
49OPimXRef &OPimXRef::operator=( const OPimXRef& ref) { 51OPimXRef &OPimXRef::operator=( const OPimXRef& ref) {
@@ -54,2 +56,3 @@ OPimXRef &OPimXRef::operator=( const OPimXRef& ref) {
54} 56}
57
55bool OPimXRef::operator==( const OPimXRef& oper ) { 58bool OPimXRef::operator==( const OPimXRef& oper ) {
@@ -62,2 +65,3 @@ OPimXRefPartner OPimXRef::partner( enum Partners par) const{
62} 65}
66
63void OPimXRef::setPartner( enum Partners par, const OPimXRefPartner& part) { 67void OPimXRef::setPartner( enum Partners par, const OPimXRefPartner& part) {
@@ -65,2 +69,3 @@ void OPimXRef::setPartner( enum Partners par, const OPimXRefPartner& part) {
65} 69}
70
66bool OPimXRef::containsString( const QString& string ) const{ 71bool OPimXRef::containsString( const QString& string ) const{
@@ -71,2 +76,3 @@ bool OPimXRef::containsString( const QString& string ) const{
71} 76}
77
72bool OPimXRef::containsUid( int uid ) const{ 78bool OPimXRef::containsUid( int uid ) const{
diff --git a/libopie2/opiepim/core/opimxref.h b/libopie2/opiepim/core/opimxref.h
index 820c9c4..f3e814e 100644
--- a/libopie2/opiepim/core/opimxref.h
+++ b/libopie2/opiepim/core/opimxref.h
@@ -29,5 +29,9 @@
29 29
30#ifndef OPIM_XREF_H 30#ifndef OPIMXREF_H
31#define OPIM_XREF_H 31#define OPIMXREF_H
32 32
33/* OPIE */
34#include <opie2/opimxrefpartner.h>
35
36/* QT */
33#include <qarray.h> 37#include <qarray.h>
@@ -35,4 +39,2 @@
35 39
36#include <opie2/opimxrefpartner.h>
37
38namespace Opie { 40namespace Opie {
diff --git a/libopie2/opiepim/core/opimxrefmanager.cpp b/libopie2/opiepim/core/opimxrefmanager.cpp
index bf6fed6..e7c6c5a 100644
--- a/libopie2/opiepim/core/opimxrefmanager.cpp
+++ b/libopie2/opiepim/core/opimxrefmanager.cpp
@@ -28,3 +28,3 @@
28*/ 28*/
29#include <opie2/opimxrefmanager.h> 29#include "opimxrefmanager.h"
30 30
@@ -34,2 +34,3 @@ OPimXRefManager::OPimXRefManager() {
34} 34}
35
35OPimXRefManager::OPimXRefManager( const OPimXRefManager& ref) { 36OPimXRefManager::OPimXRefManager( const OPimXRefManager& ref) {
@@ -37,4 +38,6 @@ OPimXRefManager::OPimXRefManager( const OPimXRefManager& ref) {
37} 38}
39
38OPimXRefManager::~OPimXRefManager() { 40OPimXRefManager::~OPimXRefManager() {
39} 41}
42
40OPimXRefManager &OPimXRefManager::operator=( const OPimXRefManager& ref) { 43OPimXRefManager &OPimXRefManager::operator=( const OPimXRefManager& ref) {
@@ -43,2 +46,3 @@ OPimXRefManager &OPimXRefManager::operator=( const OPimXRefManager& ref) {
43} 46}
47
44bool OPimXRefManager::operator==( const OPimXRefManager& /*ref*/) { 48bool OPimXRefManager::operator==( const OPimXRefManager& /*ref*/) {
@@ -48,2 +52,3 @@ bool OPimXRefManager::operator==( const OPimXRefManager& /*ref*/) {
48} 52}
53
49void OPimXRefManager::add( const OPimXRef& ref) { 54void OPimXRefManager::add( const OPimXRef& ref) {
@@ -51,2 +56,3 @@ void OPimXRefManager::add( const OPimXRef& ref) {
51} 56}
57
52void OPimXRefManager::remove( const OPimXRef& ref) { 58void OPimXRefManager::remove( const OPimXRef& ref) {
@@ -54,2 +60,3 @@ void OPimXRefManager::remove( const OPimXRef& ref) {
54} 60}
61
55void OPimXRefManager::replace( const OPimXRef& ref) { 62void OPimXRefManager::replace( const OPimXRef& ref) {
@@ -58,2 +65,3 @@ void OPimXRefManager::replace( const OPimXRef& ref) {
58} 65}
66
59void OPimXRefManager::clear() { 67void OPimXRefManager::clear() {
@@ -61,2 +69,3 @@ void OPimXRefManager::clear() {
61} 69}
70
62QStringList OPimXRefManager::apps()const { 71QStringList OPimXRefManager::apps()const {
@@ -75,2 +84,3 @@ QStringList OPimXRefManager::apps()const {
75} 84}
85
76OPimXRef::ValueList OPimXRefManager::list()const { 86OPimXRef::ValueList OPimXRefManager::list()const {
@@ -78,2 +88,3 @@ OPimXRef::ValueList OPimXRefManager::list()const {
78} 88}
89
79OPimXRef::ValueList OPimXRefManager::list( const QString& appName )const{ 90OPimXRef::ValueList OPimXRefManager::list( const QString& appName )const{
@@ -89,2 +100,3 @@ OPimXRef::ValueList OPimXRefManager::list( const QString& appName )const{
89} 100}
101
90OPimXRef::ValueList OPimXRefManager::list( int uid )const { 102OPimXRef::ValueList OPimXRefManager::list( int uid )const {
diff --git a/libopie2/opiepim/core/opimxrefmanager.h b/libopie2/opiepim/core/opimxrefmanager.h
index fa2d7f4..b80a645 100644
--- a/libopie2/opiepim/core/opimxrefmanager.h
+++ b/libopie2/opiepim/core/opimxrefmanager.h
@@ -28,9 +28,12 @@
28*/ 28*/
29#ifndef OPIM_XREF_MANAGER_H
30#define OPIM_XREF_MANAGER_H
31 29
32#include <qstringlist.h> 30#ifndef OPIMXREFMANAGER_H
31#define OPIMXREFMANAGER_H
33 32
33/* OPIE */
34#include <opie2/opimxref.h> 34#include <opie2/opimxref.h>
35 35
36/* QT */
37#include <qstringlist.h>
38
36namespace Opie { 39namespace Opie {
diff --git a/libopie2/opiepim/core/opimxrefpartner.cpp b/libopie2/opiepim/core/opimxrefpartner.cpp
index f6ccc7f..3741bc3 100644
--- a/libopie2/opiepim/core/opimxrefpartner.cpp
+++ b/libopie2/opiepim/core/opimxrefpartner.cpp
@@ -28,3 +28,3 @@
28*/ 28*/
29#include <opie2/opimxrefpartner.h> 29#include "opimxrefpartner.h"
30 30
@@ -36,2 +36,3 @@ OPimXRefPartner::OPimXRefPartner( const QString& appName,
36} 36}
37
37OPimXRefPartner::OPimXRefPartner( const OPimXRefPartner& ref ) { 38OPimXRefPartner::OPimXRefPartner( const OPimXRefPartner& ref ) {
@@ -39,4 +40,6 @@ OPimXRefPartner::OPimXRefPartner( const OPimXRefPartner& ref ) {
39} 40}
41
40OPimXRefPartner::~OPimXRefPartner() { 42OPimXRefPartner::~OPimXRefPartner() {
41} 43}
44
42OPimXRefPartner &OPimXRefPartner::operator=( const OPimXRefPartner& par ) { 45OPimXRefPartner &OPimXRefPartner::operator=( const OPimXRefPartner& par ) {
@@ -48,2 +51,3 @@ OPimXRefPartner &OPimXRefPartner::operator=( const OPimXRefPartner& par ) {
48} 51}
52
49bool OPimXRefPartner::operator==( const OPimXRefPartner& par ) { 53bool OPimXRefPartner::operator==( const OPimXRefPartner& par ) {
@@ -55,2 +59,3 @@ bool OPimXRefPartner::operator==( const OPimXRefPartner& par ) {
55} 59}
60
56QString OPimXRefPartner::service()const { 61QString OPimXRefPartner::service()const {
@@ -58,2 +63,3 @@ QString OPimXRefPartner::service()const {
58} 63}
64
59int OPimXRefPartner::uid()const { 65int OPimXRefPartner::uid()const {
@@ -61,2 +67,3 @@ int OPimXRefPartner::uid()const {
61} 67}
68
62int OPimXRefPartner::field()const { 69int OPimXRefPartner::field()const {
@@ -64,2 +71,3 @@ int OPimXRefPartner::field()const {
64} 71}
72
65void OPimXRefPartner::setService( const QString& appName ) { 73void OPimXRefPartner::setService( const QString& appName ) {
@@ -67,2 +75,3 @@ void OPimXRefPartner::setService( const QString& appName ) {
67} 75}
76
68void OPimXRefPartner::setUid( int uid ) { 77void OPimXRefPartner::setUid( int uid ) {
@@ -70,2 +79,3 @@ void OPimXRefPartner::setUid( int uid ) {
70} 79}
80
71void OPimXRefPartner::setField( int field ) { 81void OPimXRefPartner::setField( int field ) {
diff --git a/libopie2/opiepim/core/opimxrefpartner.h b/libopie2/opiepim/core/opimxrefpartner.h
index 6853d5b..005dbc0 100644
--- a/libopie2/opiepim/core/opimxrefpartner.h
+++ b/libopie2/opiepim/core/opimxrefpartner.h
@@ -31,2 +31,3 @@
31 31
32/* QT */
32#include <qstring.h> 33#include <qstring.h>
@@ -42,2 +43,3 @@ namespace Opie {
42class OPimXRefPartner { 43class OPimXRefPartner {
44
43public: 45public:
@@ -58,2 +60,3 @@ public:
58 void setField( int field ); 60 void setField( int field );
61
59private: 62private:
diff --git a/libopie2/opiepim/core/orecur.cpp b/libopie2/opiepim/core/orecur.cpp
index 033f264..5e2da25 100644
--- a/libopie2/opiepim/core/orecur.cpp
+++ b/libopie2/opiepim/core/orecur.cpp
@@ -29,12 +29,16 @@
29 29
30#include <time.h> 30#include "orecur.h"
31 31
32#include <qshared.h> 32/* OPIE */
33#include <opie2/otimezone.h>
34#include <qpe/timeconversion.h>
33 35
34#include <qtopia/timeconversion.h> 36/* QT */
37#include <qshared.h>
35 38
36#include <opie2/otimezone.h> 39/* STD */
37#include <opie2/orecur.h> 40#include <time.h>
38 41
39namespace Opie { 42namespace Opie {
43
40struct ORecur::Data : public QShared { 44struct ORecur::Data : public QShared {
@@ -79,2 +83,4 @@ ORecur::ORecur( const ORecur& rec)
79} 83}
84
85
80ORecur::~ORecur() { 86ORecur::~ORecur() {
@@ -85,2 +91,4 @@ ORecur::~ORecur() {
85} 91}
92
93
86void ORecur::deref() { 94void ORecur::deref() {
@@ -91,2 +99,4 @@ void ORecur::deref() {
91} 99}
100
101
92bool ORecur::operator==( const ORecur& )const { 102bool ORecur::operator==( const ORecur& )const {
@@ -94,2 +104,4 @@ bool ORecur::operator==( const ORecur& )const {
94} 104}
105
106
95ORecur &ORecur::operator=( const ORecur& re) { 107ORecur &ORecur::operator=( const ORecur& re) {
@@ -103,2 +115,4 @@ ORecur &ORecur::operator=( const ORecur& re) {
103} 115}
116
117
104bool ORecur::doesRecur()const { 118bool ORecur::doesRecur()const {
@@ -106,2 +120,4 @@ bool ORecur::doesRecur()const {
106} 120}
121
122
107/* 123/*
@@ -120,2 +136,4 @@ bool ORecur::doesRecur( const QDate& date ) {
120} 136}
137
138
121// FIXME unuglify! 139// FIXME unuglify!
@@ -131,2 +149,4 @@ bool ORecur::nextOcurrence( const QDate& from, QDate& next ) {
131} 149}
150
151
132bool ORecur::p_nextOccurrence( const QDate& from, QDate& next ) { 152bool ORecur::p_nextOccurrence( const QDate& from, QDate& next ) {
@@ -403,2 +423,4 @@ bool ORecur::p_nextOccurrence( const QDate& from, QDate& next ) {
403} 423}
424
425
404ORecur::RepeatType ORecur::type()const{ 426ORecur::RepeatType ORecur::type()const{
@@ -406,2 +428,4 @@ ORecur::RepeatType ORecur::type()const{
406} 428}
429
430
407int ORecur::frequency()const { 431int ORecur::frequency()const {
@@ -409,2 +433,4 @@ int ORecur::frequency()const {
409} 433}
434
435
410int ORecur::position()const { 436int ORecur::position()const {
@@ -412,2 +438,4 @@ int ORecur::position()const {
412} 438}
439
440
413char ORecur::days() const{ 441char ORecur::days() const{
@@ -415,2 +443,4 @@ char ORecur::days() const{
415} 443}
444
445
416bool ORecur::hasEndDate()const { 446bool ORecur::hasEndDate()const {
@@ -418,2 +448,4 @@ bool ORecur::hasEndDate()const {
418} 448}
449
450
419QDate ORecur::endDate()const { 451QDate ORecur::endDate()const {
@@ -421,2 +453,4 @@ QDate ORecur::endDate()const {
421} 453}
454
455
422QDate ORecur::start()const{ 456QDate ORecur::start()const{
@@ -424,2 +458,4 @@ QDate ORecur::start()const{
424} 458}
459
460
425QDateTime ORecur::createdDateTime()const { 461QDateTime ORecur::createdDateTime()const {
@@ -427,2 +463,4 @@ QDateTime ORecur::createdDateTime()const {
427} 463}
464
465
428int ORecur::repetition()const { 466int ORecur::repetition()const {
@@ -430,2 +468,4 @@ int ORecur::repetition()const {
430} 468}
469
470
431QString ORecur::service()const { 471QString ORecur::service()const {
@@ -433,2 +473,4 @@ QString ORecur::service()const {
433} 473}
474
475
434ORecur::ExceptionList& ORecur::exceptions() { 476ORecur::ExceptionList& ORecur::exceptions() {
@@ -436,2 +478,4 @@ ORecur::ExceptionList& ORecur::exceptions() {
436} 478}
479
480
437void ORecur::setType( const RepeatType& z) { 481void ORecur::setType( const RepeatType& z) {
@@ -440,2 +484,4 @@ void ORecur::setType( const RepeatType& z) {
440} 484}
485
486
441void ORecur::setFrequency( int freq ) { 487void ORecur::setFrequency( int freq ) {
@@ -444,2 +490,4 @@ void ORecur::setFrequency( int freq ) {
444} 490}
491
492
445void ORecur::setPosition( int pos ) { 493void ORecur::setPosition( int pos ) {
@@ -448,2 +496,4 @@ void ORecur::setPosition( int pos ) {
448} 496}
497
498
449void ORecur::setDays( char c ) { 499void ORecur::setDays( char c ) {
@@ -452,2 +502,4 @@ void ORecur::setDays( char c ) {
452} 502}
503
504
453void ORecur::setEndDate( const QDate& dt) { 505void ORecur::setEndDate( const QDate& dt) {
@@ -456,2 +508,4 @@ void ORecur::setEndDate( const QDate& dt) {
456} 508}
509
510
457void ORecur::setCreatedDateTime( const QDateTime& t) { 511void ORecur::setCreatedDateTime( const QDateTime& t) {
@@ -460,2 +514,4 @@ void ORecur::setCreatedDateTime( const QDateTime& t) {
460} 514}
515
516
461void ORecur::setHasEndDate( bool b) { 517void ORecur::setHasEndDate( bool b) {
@@ -464,2 +520,4 @@ void ORecur::setHasEndDate( bool b) {
464} 520}
521
522
465void ORecur::setRepitition( int rep ) { 523void ORecur::setRepitition( int rep ) {
@@ -468,2 +526,4 @@ void ORecur::setRepitition( int rep ) {
468} 526}
527
528
469void ORecur::setService( const QString& app ) { 529void ORecur::setService( const QString& app ) {
@@ -472,2 +532,4 @@ void ORecur::setService( const QString& app ) {
472} 532}
533
534
473void ORecur::setStart( const QDate& dt ) { 535void ORecur::setStart( const QDate& dt ) {
@@ -476,2 +538,4 @@ void ORecur::setStart( const QDate& dt ) {
476} 538}
539
540
477void ORecur::checkOrModify() { 541void ORecur::checkOrModify() {
@@ -494,2 +558,4 @@ void ORecur::checkOrModify() {
494} 558}
559
560
495QString ORecur::toString()const { 561QString ORecur::toString()const {
diff --git a/libopie2/opiepim/core/orecur.h b/libopie2/opiepim/core/orecur.h
index 60508f5..7808897 100644
--- a/libopie2/opiepim/core/orecur.h
+++ b/libopie2/opiepim/core/orecur.h
@@ -29,7 +29,6 @@
29 29
30#ifndef OPIE_RECUR_H 30#ifndef ORECUR_H
31#define OPIE_RECUR_H 31#define ORECUR_H
32
33#include <sys/types.h>
34 32
33/* QT */
35#include <qdatetime.h> 34#include <qdatetime.h>
@@ -38,2 +37,4 @@
38 37
38/* STD */
39#include <sys/types.h>
39 40
@@ -45,2 +46,3 @@ namespace Opie {
45class ORecur { 46class ORecur {
47
46public: 48public:
@@ -116,2 +118,3 @@ public:
116 QString toString()const; 118 QString toString()const;
119
117private: 120private:
diff --git a/libopie2/opiepim/core/otemplatebase.h b/libopie2/opiepim/core/otemplatebase.h
index 17d9961..58cbfeb 100644
--- a/libopie2/opiepim/core/otemplatebase.h
+++ b/libopie2/opiepim/core/otemplatebase.h
@@ -28,9 +28,10 @@
28*/ 28*/
29#ifndef OPIE_TEMPLATE_BASE_H 29#ifndef OTEMPLATEBASE_H
30#define OPIE_TEMPLATE_BASE_H 30#define OTEMPLATEBASE_H
31
32#include <qarray.h>
33 31
32/* OPIE */
34#include <opie2/opimrecord.h> 33#include <opie2/opimrecord.h>
35 34
35/* QT */
36#include <qarray.h>
36 37
diff --git a/libopie2/opiepim/core/otimezone.cpp b/libopie2/opiepim/core/otimezone.cpp
index dab68af..e67715f 100644
--- a/libopie2/opiepim/core/otimezone.cpp
+++ b/libopie2/opiepim/core/otimezone.cpp
@@ -29,12 +29,14 @@
29 29
30#include "otimezone.h"
31
32/* STD */
30#include <stdio.h> 33#include <stdio.h>
31#include <stdlib.h> 34#include <stdlib.h>
32
33#include <sys/types.h> 35#include <sys/types.h>
34 36
35#include <opie2/otimezone.h> 37namespace Opie
38{
36 39
37namespace Opie { 40QDateTime utcTime( time_t t )
38 41{
39 QDateTime utcTime( time_t t) {
40 tm* broken = ::gmtime( &t ); 42 tm* broken = ::gmtime( &t );
@@ -45,5 +47,7 @@ namespace Opie {
45 } 47 }
46 QDateTime utcTime( time_t t, const QString& zone) { 48QDateTime utcTime( time_t t, const QString& zone )
49{
47 QCString org = ::getenv( "TZ" ); 50 QCString org = ::getenv( "TZ" );
48#ifndef Q_OS_MACX // Following line causes bus errors on Mac 51#ifndef Q_OS_MACX // Following line causes bus errors on Mac
52
49 ::setenv( "TZ", zone.latin1(), true ); 53 ::setenv( "TZ", zone.latin1(), true );
@@ -55,2 +59,3 @@ namespace Opie {
55#warning "Need a replacement for MacOSX!!" 59#warning "Need a replacement for MacOSX!!"
60
56 tm* broken = ::localtime( &t ); 61 tm* broken = ::localtime( &t );
@@ -64,3 +69,4 @@ namespace Opie {
64 } 69 }
65 time_t to_Time_t( const QDateTime& utc, const QString& str ) { 70time_t to_Time_t( const QDateTime& utc, const QString& str )
71{
66 QDate d = utc.date(); 72 QDate d = utc.date();
@@ -78,2 +84,3 @@ namespace Opie {
78#ifndef Q_OS_MACX // Following line causes bus errors on Mac 84#ifndef Q_OS_MACX // Following line causes bus errors on Mac
85
79 ::setenv( "TZ", str.latin1(), true ); 86 ::setenv( "TZ", str.latin1(), true );
@@ -85,4 +92,6 @@ namespace Opie {
85#warning "Need a replacement for MacOSX!!" 92#warning "Need a replacement for MacOSX!!"
93
86 time_t ti = ::mktime( &broken ); 94 time_t ti = ::mktime( &broken );
87#endif 95#endif
96
88 return ti; 97 return ti;
@@ -91,10 +100,15 @@ namespace Opie {
91 100
92namespace Opie { 101namespace Opie
102{
93OTimeZone::OTimeZone( const ZoneName& zone ) 103OTimeZone::OTimeZone( const ZoneName& zone )
94 : m_name(zone) { 104 : m_name( zone )
95} 105{}
96OTimeZone::~OTimeZone() { 106
97} 107
108OTimeZone::~OTimeZone()
109{}
98 110
99bool OTimeZone::isValid()const { 111
112bool OTimeZone::isValid() const
113{
100 return !m_name.isEmpty(); 114 return !m_name.isEmpty();
@@ -106,14 +120,26 @@ bool OTimeZone::isValid()const {
106 */ 120 */
107QDateTime OTimeZone::toLocalDateTime( const QDateTime& dt) { 121QDateTime OTimeZone::toLocalDateTime( const QDateTime& dt )
122{
108 return OTimeZone::current().toDateTime( dt, *this ); 123 return OTimeZone::current().toDateTime( dt, *this );
109} 124}
110QDateTime OTimeZone::toUTCDateTime( const QDateTime& dt ) { 125
126
127QDateTime OTimeZone::toUTCDateTime( const QDateTime& dt )
128{
111 return OTimeZone::utc().toDateTime( dt, *this ); 129 return OTimeZone::utc().toDateTime( dt, *this );
112} 130}
113QDateTime OTimeZone::fromUTCDateTime( time_t t) { 131
132
133QDateTime OTimeZone::fromUTCDateTime( time_t t )
134{
114 return utcTime( t ); 135 return utcTime( t );
115} 136}
116QDateTime OTimeZone::toDateTime( time_t t) { 137
138
139QDateTime OTimeZone::toDateTime( time_t t )
140{
117 return utcTime( t, m_name ); 141 return utcTime( t, m_name );
118} 142}
143
144
119/* 145/*
@@ -122,3 +148,4 @@ QDateTime OTimeZone::toDateTime( time_t t) {
122 */ 148 */
123QDateTime OTimeZone::toDateTime( const QDateTime& dt, const OTimeZone& zone ) { 149QDateTime OTimeZone::toDateTime( const QDateTime& dt, const OTimeZone& zone )
150{
124 time_t utc = to_Time_t( dt, zone.m_name ); 151 time_t utc = to_Time_t( dt, zone.m_name );
@@ -127,9 +154,18 @@ QDateTime OTimeZone::toDateTime( const QDateTime& dt, const OTimeZone& zone ) {
127} 154}
128time_t OTimeZone::fromDateTime( const QDateTime& time ) { 155
156
157time_t OTimeZone::fromDateTime( const QDateTime& time )
158{
129 return to_Time_t( time, m_name ); 159 return to_Time_t( time, m_name );
130} 160}
131time_t OTimeZone::fromUTCDateTime( const QDateTime& time ) { 161
162
163time_t OTimeZone::fromUTCDateTime( const QDateTime& time )
164{
132 return to_Time_t( time, "UTC" ); 165 return to_Time_t( time, "UTC" );
133} 166}
134OTimeZone OTimeZone::current() { 167
168
169OTimeZone OTimeZone::current()
170{
135 QCString str = ::getenv("TZ"); 171 QCString str = ::getenv("TZ");
@@ -138,6 +174,12 @@ OTimeZone OTimeZone::current() {
138} 174}
139OTimeZone OTimeZone::utc() { 175
176
177OTimeZone OTimeZone::utc()
178{
140 return OTimeZone("UTC"); 179 return OTimeZone("UTC");
141} 180}
142QString OTimeZone::timeZone()const { 181
182
183QString OTimeZone::timeZone() const
184{
143 return m_name; 185 return m_name;
diff --git a/libopie2/opiepim/core/otimezone.h b/libopie2/opiepim/core/otimezone.h
index 28ae6cb..f0b4022 100644
--- a/libopie2/opiepim/core/otimezone.h
+++ b/libopie2/opiepim/core/otimezone.h
@@ -29,8 +29,11 @@
29 29
30#ifndef OPIE_TIME_ZONE_H 30#ifndef OTIMEZONE_H
31#define OPIE_TIME_ZONE_H 31#define OTIMEZONE_H
32 32
33#include <time.h> 33/* QT */
34#include <qdatetime.h> 34#include <qdatetime.h>
35 35
36/* STD */
37#include <time.h>
38
36namespace Opie 39namespace Opie
@@ -44,2 +47,3 @@ namespace Opie
44class OTimeZone { 47class OTimeZone {
48
45 public: 49 public:
@@ -94,2 +98,3 @@ class OTimeZone {
94 QString timeZone()const; 98 QString timeZone()const;
99
95 private: 100 private:
diff --git a/libopie2/opieui/otabwidget.h b/libopie2/opieui/otabwidget.h
index 51d1c6d..c7d32c2 100644
--- a/libopie2/opieui/otabwidget.h
+++ b/libopie2/opieui/otabwidget.h
@@ -2,4 +2,3 @@
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 3              Copyright (C) 2002 Dan Williams <williamsdr@acm.org>
4              Copyright (c) 2002 Dan Williams <williamsdr@acm.org>
5 =. 4 =.
@@ -71,4 +70,4 @@ class OTabWidget : public QWidget
71 Q_OBJECT 70 Q_OBJECT
72public:
73 71
72 public:
74/** 73/**
@@ -109,3 +108,2 @@ public:
109 */ 108 */
110 // FIXME WFlags? -zecke
111 OTabWidget( QWidget * = 0, const char * = 0, TabStyle = Global, TabPosition = Top ); 109 OTabWidget( QWidget * = 0, const char * = 0, TabStyle = Global, TabPosition = Top );
diff --git a/libopie2/opieui/owait.cpp b/libopie2/opieui/owait.cpp
index 0fdf08d..8bb4ed6 100644
--- a/libopie2/opieui/owait.cpp
+++ b/libopie2/opieui/owait.cpp
@@ -1,25 +1,30 @@
1/* This file is part of the OPIE libraries 1/*
2 Copyright (C) 2003 Maximilian Reiss (harlekin@handhelds.org) 2                This file is part of the Opie Project
3 3              Copyright (C) 2003 Maximilian Reiss <harlekin@handhelds.org>
4 This library is free software; you can redistribute it and/or 4 =.
5 modify it under the terms of the GNU Library General Public 5 .=l.
6 License as published by the Free Software Foundation; either 6           .>+-=
7 version 2 of the License, or (at your option) any later version. 7 _;:,     .>    :=|. This program is free software; you can
8 8.> <`_,   >  .   <= redistribute it and/or modify it under
9 This library is distributed in the hope that it will be useful, 9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10.="- .-=="i,     .._ License as published by the Free Software
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - .   .-<_>     .<> Foundation; either version 2 of the License,
12 Library General Public License for more details. 12     ._= =}       : or (at your option) any later version.
13 13    .%`+i>       _;_.
14 You should have received a copy of the GNU Library General Public License 14    .i_,=:_.      -<s. This program is distributed in the hope that
15 along with this library; see the file COPYING.LIB. If not, write to 15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 16    : ..    .:,     . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details.
21 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
18*/
19 28
20#include <qlabel.h> 29*/
21#include <qlayout.h>
22#include <qtimer.h>
23#include <qpe/qpeapplication.h>
24#include <qpainter.h>
25 30
@@ -27,4 +32,10 @@
27 32
33/* OPIE */
34#include <qpe/qpeapplication.h>
28#include <qpe/resource.h> 35#include <qpe/resource.h>
29 36
37/* QT */
38#include <qlayout.h>
39#include <qpainter.h>
40
30static int frame = 0; 41static int frame = 0;
@@ -41,3 +52,4 @@ static int frame = 0;
41OWait::OWait(QWidget *parent, const char* msg, bool dispIcon ) 52OWait::OWait(QWidget *parent, const char* msg, bool dispIcon )
42 :QDialog(parent, msg, TRUE,WStyle_Customize) { 53 :QDialog( parent, msg, TRUE, WStyle_Customize )
54{
43 55
@@ -62,3 +74,4 @@ OWait::OWait(QWidget *parent, const char* msg, bool dispIcon )
62 74
63void OWait::timerEvent( QTimerEvent * ) { 75void OWait::timerEvent( QTimerEvent * )
76{
64 frame = (++frame) % 4; 77 frame = (++frame) % 4;
@@ -67,3 +80,4 @@ void OWait::timerEvent( QTimerEvent * ) {
67 80
68void OWait::paintEvent( QPaintEvent * ) { 81void OWait::paintEvent( QPaintEvent * )
82{
69 QPainter p( m_lb ); 83 QPainter p( m_lb );
@@ -72,3 +86,4 @@ void OWait::paintEvent( QPaintEvent * ) {
72 86
73void OWait::show() { 87void OWait::show()
88{
74 89
@@ -80,3 +95,4 @@ void OWait::show() {
80 95
81void OWait::hide() { 96void OWait::hide()
97{
82 killTimers(); 98 killTimers();
@@ -87,3 +103,4 @@ void OWait::hide() {
87 103
88void OWait::setTimerLength( int length ) { 104void OWait::setTimerLength( int length )
105{
89 m_timerLength = length; 106 m_timerLength = length;
@@ -91,3 +108,3 @@ void OWait::setTimerLength( int length ) {
91 108
92OWait::~OWait() { 109OWait::~OWait()
93} 110{}
diff --git a/libopie2/opieui/owait.h b/libopie2/opieui/owait.h
index cbfc8d6..3267064 100644
--- a/libopie2/opieui/owait.h
+++ b/libopie2/opieui/owait.h
@@ -1,28 +1,38 @@
1/* This file is part of the OPIE libraries 1/*
2 Copyright (C) 2003 Maximilian Reiss (harlekin@handhelds.org) 2                This file is part of the Opie Project
3 3              Copyright (C) 2003 Maximilian Reiss <harlekin@handhelds.org>
4 This library is free software; you can redistribute it and/or 4 =.
5 modify it under the terms of the GNU Library General Public 5 .=l.
6 License as published by the Free Software Foundation; either 6           .>+-=
7 version 2 of the License, or (at your option) any later version. 7 _;:,     .>    :=|. This program is free software; you can
8 8.> <`_,   >  .   <= redistribute it and/or modify it under
9 This library is distributed in the hope that it will be useful, 9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10.="- .-=="i,     .._ License as published by the Free Software
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 - .   .-<_>     .<> Foundation; either version 2 of the License,
12 Library General Public License for more details. 12     ._= =}       : or (at your option) any later version.
13 13    .%`+i>       _;_.
14 You should have received a copy of the GNU Library General Public License 14    .i_,=:_.      -<s. This program is distributed in the hope that
15 along with this library; see the file COPYING.LIB. If not, write to 15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
16 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 16    : ..    .:,     . . . without even the implied warranty of
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
19..}^=.=       =       ; Library General Public License for more
20++=   -.     .`     .: details.
21 :     =  ...= . :.=-
22 -.   .:....=;==+<; You should have received a copy of the GNU
23  -_. . .   )=.  = Library General Public License along with
24    --        :-=` this library; see the file COPYING.LIB.
25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
18*/
19
20 28
29*/
21 30
22#ifndef WAITPOPUP_H 31#ifndef OWAIT_H
23#define WAITPOPUP_H 32#define OWAIT_H
24 33
34/* QT */
25#include <qdialog.h> 35#include <qdialog.h>
26#include <qpixmap.h>
27#include <qlabel.h> 36#include <qlabel.h>
37#include <qpixmap.h>
28#include <qtimer.h> 38#include <qtimer.h>
@@ -36,4 +46,4 @@
36 */ 46 */
37class OWait : public QDialog { 47class OWait : public QDialog
38 48{
39 Q_OBJECT 49 Q_OBJECT
@@ -41,3 +51,2 @@ class OWait : public QDialog {
41public: 51public:
42 // FIXME Wflags -zecke?
43 OWait(QWidget *parent=0,const char* name=0, bool dispIcon=TRUE); 52 OWait(QWidget *parent=0,const char* name=0, bool dispIcon=TRUE);