author | zautrix <zautrix> | 2004-09-08 02:02:15 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-08 02:02:15 (UTC) |
commit | e5f6ea343bc2b129f81fde3734b100cfa2ed6c83 (patch) (unidiff) | |
tree | 8d33b16e52b1d886cf524052418e8dd445689a66 | |
parent | 199025628054eef739a261437a51a98f5218ab0f (diff) | |
download | kdepimpi-e5f6ea343bc2b129f81fde3734b100cfa2ed6c83.zip kdepimpi-e5f6ea343bc2b129f81fde3734b100cfa2ed6c83.tar.gz kdepimpi-e5f6ea343bc2b129f81fde3734b100cfa2ed6c83.tar.bz2 |
Some fixes
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | kaddressbook/kabcore.cpp | 2 | ||||
-rw-r--r-- | kalarmd/simplealarmdaemonimpl.cpp | 2 | ||||
-rw-r--r-- | kdepim.control | 2 | ||||
-rw-r--r-- | kmicrokdelibs.control | 2 | ||||
-rw-r--r-- | kmicromail/composemail.cpp | 2 | ||||
-rw-r--r-- | kmicromail/main.cpp | 2 | ||||
-rw-r--r-- | kmicromail/opiemail.cpp | 11 |
8 files changed, 21 insertions, 15 deletions
@@ -54,86 +54,86 @@ SUBDIRS = \ | |||
54 | $(SUBDIRS_MICROMAIL) \ | 54 | $(SUBDIRS_MICROMAIL) \ |
55 | $(SUBDIRS_GAMMU) | 55 | $(SUBDIRS_GAMMU) |
56 | 56 | ||
57 | all: build_microkde \ | 57 | all: build_microkde \ |
58 | build_qtopia_plugin \ | 58 | build_qtopia_plugin \ |
59 | build_opie_plugin \ | 59 | build_opie_plugin \ |
60 | build_sharp_plugin \ | 60 | build_sharp_plugin \ |
61 | build_ldap_plugin \ | 61 | build_ldap_plugin \ |
62 | build_micromail \ | 62 | build_micromail \ |
63 | build_gammu | 63 | build_gammu |
64 | 64 | ||
65 | 65 | ||
66 | build_microkde: variable_test tmake | 66 | build_microkde: variable_test tmake |
67 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ | 67 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ |
68 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 68 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
69 | done | 69 | done |
70 | 70 | ||
71 | build_qtopia_plugin: build_microkde | 71 | build_qtopia_plugin: build_microkde |
72 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ | 72 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ |
73 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 73 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
74 | done | 74 | done |
75 | 75 | ||
76 | build_opie_plugin: build_microkde | 76 | build_opie_plugin: build_microkde |
77 | ifdef BUILD_NO_OPIE_PLUGIN | 77 | ifdef BUILD_NO_OPIE_PLUGIN |
78 | @echo ---> opie plugin not build. | 78 | @echo == opie plugin not build. |
79 | else | 79 | else |
80 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ | 80 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ |
81 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 81 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
82 | done | 82 | done |
83 | endif | 83 | endif |
84 | 84 | ||
85 | build_sharp_plugin: build_microkde | 85 | build_sharp_plugin: build_microkde |
86 | ifdef BUILD_NO_SHARP_PLUGIN | 86 | ifdef BUILD_NO_SHARP_PLUGIN |
87 | @echo ---> ldap plugin not build. | 87 | @echo == ldap plugin not build. |
88 | else | 88 | else |
89 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ | 89 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ |
90 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 90 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
91 | done | 91 | done |
92 | endif | 92 | endif |
93 | 93 | ||
94 | build_ldap_plugin: build_microkde | 94 | build_ldap_plugin: build_microkde |
95 | ifdef BUILD_NO_LDAP_PLUGIN | 95 | ifdef BUILD_NO_LDAP_PLUGIN |
96 | @echo ---> ldap plugin not build. | 96 | @echo == ldap plugin not build. |
97 | else | 97 | else |
98 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ | 98 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ |
99 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 99 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
100 | done | 100 | done |
101 | endif | 101 | endif |
102 | 102 | ||
103 | 103 | ||
104 | build_micromail: build_microkde | 104 | build_micromail: build_microkde |
105 | ifdef BUILD_NO_MICROMAIL | 105 | ifdef BUILD_NO_MICROMAIL |
106 | @echo ---> micromail not build. | 106 | @echo == kmicromail not build. |
107 | else | 107 | else |
108 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ | 108 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ |
109 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 109 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
110 | done | 110 | done |
111 | endif | 111 | endif |
112 | 112 | ||
113 | build_gammu: variable_test tmake | 113 | build_gammu: variable_test tmake |
114 | ifdef BUILD_NO_GAMMU | 114 | ifdef BUILD_NO_GAMMU |
115 | @echo ---> gammu not build. | 115 | @echo == gammu not build. |
116 | else | 116 | else |
117 | for i in $(SUBDIRS_GAMMU); do pushd $$i; \ | 117 | for i in $(SUBDIRS_GAMMU); do pushd $$i; \ |
118 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 118 | make -f Makefile$(PLATFORM) || exit 1; popd; \ |
119 | done | 119 | done |
120 | endif | 120 | endif |
121 | 121 | ||
122 | 122 | ||
123 | variable_info: | 123 | variable_info: |
124 | @echo -------------------------------------- | 124 | @echo -------------------------------------- |
125 | @echo KDEPIM buildsystem, variableinfo... | 125 | @echo KDEPIM buildsystem, variableinfo... |
126 | @echo KDEPIMDIR=$(KDEPIMDIR) | 126 | @echo KDEPIMDIR=$(KDEPIMDIR) |
127 | @echo QTDIR=$(QTDIR) | 127 | @echo QTDIR=$(QTDIR) |
128 | @echo QPEDIR=$(QPEDIR) | 128 | @echo QPEDIR=$(QPEDIR) |
129 | @echo OPIEDIR=$(OPIEDIR) | 129 | @echo OPIEDIR=$(OPIEDIR) |
130 | @echo PLATFORM=$(PLATFORM) | 130 | @echo PLATFORM=$(PLATFORM) |
131 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) | 131 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) |
132 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) | 132 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) |
133 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) | 133 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) |
134 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) | 134 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) |
135 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) | 135 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) |
136 | ifndef BUILD_NO_SHARP_PLUGIN | 136 | ifndef BUILD_NO_SHARP_PLUGIN |
137 | @echo SHARPDTMSDK=$(SHARPDTMSDK) | 137 | @echo SHARPDTMSDK=$(SHARPDTMSDK) |
138 | endif | 138 | endif |
139 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) | 139 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) |
@@ -145,48 +145,51 @@ variable_test: variable_info | |||
145 | @echo KDEPIMDIR is not defined. | 145 | @echo KDEPIMDIR is not defined. |
146 | $(error KDEPIMDIR is not defined) | 146 | $(error KDEPIMDIR is not defined) |
147 | endif | 147 | endif |
148 | ifndef PLATFORM | 148 | ifndef PLATFORM |
149 | @echo PLATFORM is not defined. | 149 | @echo PLATFORM is not defined. |
150 | $(error PLATFORM is not defined) | 150 | $(error PLATFORM is not defined) |
151 | endif | 151 | endif |
152 | ifdef BUILD_NO_LDAP_PLUGIN | 152 | ifdef BUILD_NO_LDAP_PLUGIN |
153 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) | 153 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) |
154 | endif | 154 | endif |
155 | ifdef BUILD_NO_OPIE_PLUGIN | 155 | ifdef BUILD_NO_OPIE_PLUGIN |
156 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) | 156 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) |
157 | endif | 157 | endif |
158 | ifdef BUILD_NO_MICROMAIL | 158 | ifdef BUILD_NO_MICROMAIL |
159 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) | 159 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) |
160 | endif | 160 | endif |
161 | ifdef BUILD_NO_SHARP_PLUGIN | 161 | ifdef BUILD_NO_SHARP_PLUGIN |
162 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) | 162 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) |
163 | else | 163 | else |
164 | ifndef SHARPDTMSDK | 164 | ifndef SHARPDTMSDK |
165 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) | 165 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) |
166 | $(error SHARPDTMSDK is not defined) | 166 | $(error SHARPDTMSDK is not defined) |
167 | endif | 167 | endif |
168 | endif | 168 | endif |
169 | ifdef BUILD_NO_GAMMU | ||
170 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) | ||
171 | endif | ||
169 | @echo -------------------------------------- | 172 | @echo -------------------------------------- |
170 | 173 | ||
171 | 174 | ||
172 | objects: | 175 | objects: |
173 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 176 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
174 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 177 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
175 | mkdir -p libical/lib/$(PLATFORM) | 178 | mkdir -p libical/lib/$(PLATFORM) |
176 | 179 | ||
177 | clean: | 180 | clean: |
178 | rm -rf libical/lib/$(PLATFORM)/*; | 181 | rm -rf libical/lib/$(PLATFORM)/*; |
179 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 182 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
180 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | 183 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ |
181 | done | 184 | done |
182 | install: | 185 | install: |
183 | cd bin/kdepim; make install | 186 | cd bin/kdepim; make install |
184 | cp -r Pim $(QPEDIR)/apps | 187 | cp -r Pim $(QPEDIR)/apps |
185 | cp db2file/db2file $(QPEDIR)/bin/db2file | 188 | cp db2file/db2file $(QPEDIR)/bin/db2file |
186 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 189 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
187 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 190 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
188 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | 191 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop |
189 | 192 | ||
190 | dist: | 193 | dist: |
191 | @echo Dont forget to do "make install" before "make dist" | 194 | @echo Dont forget to do "make install" before "make dist" |
192 | rm -f *arm.ipk | 195 | rm -f *arm.ipk |
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 5cd9649..6538295 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -616,49 +616,49 @@ void KABCore::beamVCard(const QStringList& uids) | |||
616 | Opie::OPimContactAccessBackend* vcard_backend = new Opie::OPimContactAccessBackend_VCard( QString::null, | 616 | Opie::OPimContactAccessBackend* vcard_backend = new Opie::OPimContactAccessBackend_VCard( QString::null, |
617 | beamfile ); | 617 | beamfile ); |
618 | Opie::OPimContactAccess* access = new Opie::OPimContactAccess ( "addressbook", QString::null , vcard_backend, true ); | 618 | Opie::OPimContactAccess* access = new Opie::OPimContactAccess ( "addressbook", QString::null , vcard_backend, true ); |
619 | access->add( c ); | 619 | access->add( c ); |
620 | access->save(); | 620 | access->save(); |
621 | delete access; | 621 | delete access; |
622 | 622 | ||
623 | beamFilename = beamfile; | 623 | beamFilename = beamfile; |
624 | } | 624 | } |
625 | 625 | ||
626 | owarn << "Beaming: " << beamFilename << oendl; | 626 | owarn << "Beaming: " << beamFilename << oendl; |
627 | */ | 627 | */ |
628 | 628 | ||
629 | #if 0 | 629 | #if 0 |
630 | QString tmpdir = locateLocal("tmp", KGlobal::getAppName()); | 630 | QString tmpdir = locateLocal("tmp", KGlobal::getAppName()); |
631 | 631 | ||
632 | QString dirName = tmpdir + "/" + KApplication::randomString( 8 ); | 632 | QString dirName = tmpdir + "/" + KApplication::randomString( 8 ); |
633 | 633 | ||
634 | QString name = "contact.vcf"; | 634 | QString name = "contact.vcf"; |
635 | 635 | ||
636 | QString fileName = dirName + "/" + name; | 636 | QString fileName = dirName + "/" + name; |
637 | #endif | 637 | #endif |
638 | // LR: we should use the /tmp dir, because: /tmp = RAM, (HOME)/kdepim = flash memory | 638 | // LR: we should use the /tmp dir, because: /tmp = RAM, (HOME)/kdepim = flash memory |
639 | // | 639 | // |
640 | QString fileName = "/tmp/kdepimbeamfile"; | 640 | QString fileName = "/tmp/kapibeamfile.vcf"; |
641 | 641 | ||
642 | 642 | ||
643 | //QDir().mkdir( dirName, true ); | 643 | //QDir().mkdir( dirName, true ); |
644 | 644 | ||
645 | QFile outFile(fileName); | 645 | QFile outFile(fileName); |
646 | KABC::VCardConverter converter; | 646 | KABC::VCardConverter converter; |
647 | QString description; | 647 | QString description; |
648 | 648 | ||
649 | if ( outFile.open(IO_WriteOnly) ) { // file opened successfully | 649 | if ( outFile.open(IO_WriteOnly) ) { // file opened successfully |
650 | 650 | ||
651 | QTextStream t( &outFile ); // use a text stream | 651 | QTextStream t( &outFile ); // use a text stream |
652 | t.setEncoding( QTextStream::UnicodeUTF8 ); | 652 | t.setEncoding( QTextStream::UnicodeUTF8 ); |
653 | 653 | ||
654 | for( QStringList::ConstIterator it = uids.begin(); it != uids.end(); ++it ) { | 654 | for( QStringList::ConstIterator it = uids.begin(); it != uids.end(); ++it ) { |
655 | KABC::Addressee a = mAddressBook->findByUid( *it ); | 655 | KABC::Addressee a = mAddressBook->findByUid( *it ); |
656 | 656 | ||
657 | if ( a.isEmpty() ) | 657 | if ( a.isEmpty() ) |
658 | continue; | 658 | continue; |
659 | 659 | ||
660 | if (description.isEmpty()) | 660 | if (description.isEmpty()) |
661 | description = a.formattedName(); | 661 | description = a.formattedName(); |
662 | 662 | ||
663 | QString vcard; | 663 | QString vcard; |
664 | converter.addresseeToVCard( a, vcard ); | 664 | converter.addresseeToVCard( a, vcard ); |
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index 18e4299..4ff6861 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp | |||
@@ -539,49 +539,49 @@ void SimpleAlarmDaemonImpl::confTimer( int time ) | |||
539 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.latin1()); | 539 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.latin1()); |
540 | mTimerTime = 1; | 540 | mTimerTime = 1; |
541 | } | 541 | } |
542 | 542 | ||
543 | void SimpleAlarmDaemonImpl::writeFile() | 543 | void SimpleAlarmDaemonImpl::writeFile() |
544 | { | 544 | { |
545 | QCopEnvelope e("QPE/Application/kopi", "-writeFile"); | 545 | QCopEnvelope e("QPE/Application/kopi", "-writeFile"); |
546 | } | 546 | } |
547 | void SimpleAlarmDaemonImpl::showWN() | 547 | void SimpleAlarmDaemonImpl::showWN() |
548 | { | 548 | { |
549 | QCopEnvelope e("QPE/Application/kopi", "-showWN"); | 549 | QCopEnvelope e("QPE/Application/kopi", "-showWN"); |
550 | } | 550 | } |
551 | void SimpleAlarmDaemonImpl::newTodo() | 551 | void SimpleAlarmDaemonImpl::newTodo() |
552 | { | 552 | { |
553 | QCopEnvelope e("QPE/Application/kopi", "-newTodo"); | 553 | QCopEnvelope e("QPE/Application/kopi", "-newTodo"); |
554 | } | 554 | } |
555 | 555 | ||
556 | void SimpleAlarmDaemonImpl::newEvent() | 556 | void SimpleAlarmDaemonImpl::newEvent() |
557 | { | 557 | { |
558 | QCopEnvelope e("QPE/Application/kopi", "-newEvent"); | 558 | QCopEnvelope e("QPE/Application/kopi", "-newEvent"); |
559 | 559 | ||
560 | } | 560 | } |
561 | void SimpleAlarmDaemonImpl::newMail() | 561 | void SimpleAlarmDaemonImpl::newMail() |
562 | { | 562 | { |
563 | QCopEnvelope e("QPE/Application/kmpi", "newMail()"); | 563 | QCopEnvelope e("QPE/Application/ompi", "newMail()"); |
564 | } | 564 | } |
565 | void SimpleAlarmDaemonImpl::showAdd() | 565 | void SimpleAlarmDaemonImpl::showAdd() |
566 | { | 566 | { |
567 | QCopEnvelope e("QPE/Application/kapi", " "); | 567 | QCopEnvelope e("QPE/Application/kapi", " "); |
568 | } | 568 | } |
569 | void SimpleAlarmDaemonImpl::ringSync() | 569 | void SimpleAlarmDaemonImpl::ringSync() |
570 | { | 570 | { |
571 | QCopEnvelope e("QPE/Application/kopi", "-ringSync"); | 571 | QCopEnvelope e("QPE/Application/kopi", "-ringSync"); |
572 | 572 | ||
573 | } | 573 | } |
574 | void SimpleAlarmDaemonImpl::newCountdown() | 574 | void SimpleAlarmDaemonImpl::newCountdown() |
575 | { | 575 | { |
576 | //recieve("cal_alarm", 10 ); | 576 | //recieve("cal_alarm", 10 ); |
577 | } | 577 | } |
578 | void SimpleAlarmDaemonImpl::simulate() | 578 | void SimpleAlarmDaemonImpl::simulate() |
579 | { | 579 | { |
580 | writeFile(); | 580 | writeFile(); |
581 | QString filename = getenv("QPEDIR") ; | 581 | QString filename = getenv("QPEDIR") ; |
582 | filename += "/pics/kdepim/korganizer/koalarm.wav"; | 582 | filename += "/pics/kdepim/korganizer/koalarm.wav"; |
583 | startAlarm("Alarm simulation", filename ); | 583 | startAlarm("Alarm simulation", filename ); |
584 | } | 584 | } |
585 | void SimpleAlarmDaemonImpl::showKO() | 585 | void SimpleAlarmDaemonImpl::showKO() |
586 | { | 586 | { |
587 | QCopEnvelope e("QPE/Application/kopi", "-showKO"); | 587 | QCopEnvelope e("QPE/Application/kopi", "-showKO"); |
diff --git a/kdepim.control b/kdepim.control index 56f9460..b0355a2 100644 --- a/kdepim.control +++ b/kdepim.control | |||
@@ -1,14 +1,14 @@ | |||
1 | Files: bin/kopi bin/db2file bin/kapi apps/Pim/korganizer.desktop apps/Pim/kaddressbook.desktop pics/kdepim/* lib/libmicro* | 1 | Files: bin/kopi bin/db2file bin/kapi apps/Pim/korganizer.desktop apps/Pim/kaddressbook.desktop pics/kdepim/* lib/libmicro* |
2 | 2 | ||
3 | Priority: optional | 3 | Priority: optional |
4 | Section: qpe/pim | 4 | Section: qpe/pim |
5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> | 5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: 1.9.2a | 7 | Version: 1.9.4 |
8 | License: GPL | 8 | License: GPL |
9 | Depends: | 9 | Depends: |
10 | Description: KOrganizer/Pi and Kaddressbook/Pi | 10 | Description: KOrganizer/Pi and Kaddressbook/Pi |
11 | The embedded version of KOrganizer/Platform-independend, | 11 | The embedded version of KOrganizer/Platform-independend, |
12 | the KDE calendar and scheduling program | 12 | the KDE calendar and scheduling program |
13 | optimized for 640x480 and 320x240 resolution | 13 | optimized for 640x480 and 320x240 resolution |
14 | on Zaurus PDA | 14 | on Zaurus PDA |
diff --git a/kmicrokdelibs.control b/kmicrokdelibs.control index 173b639..d894176 100644 --- a/kmicrokdelibs.control +++ b/kmicrokdelibs.control | |||
@@ -1,14 +1,14 @@ | |||
1 | Files: bin/db2file lib/libmicro* | 1 | Files: bin/db2file lib/libmicro* pics/kdepim/LICENCE.TXT |
2 | 2 | ||
3 | Priority: optional | 3 | Priority: optional |
4 | Section: qpe/pim | 4 | Section: qpe/pim |
5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> | 5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: 1.9.4 | 7 | Version: 1.9.4 |
8 | License: GPL | 8 | License: GPL |
9 | Depends: | 9 | Depends: |
10 | Description: KOrganizer/Pi and Kaddressbook/Pi | 10 | Description: KOrganizer/Pi and Kaddressbook/Pi |
11 | The embedded version of KOrganizer/Platform-independend, | 11 | The embedded version of KOrganizer/Platform-independend, |
12 | the KDE calendar and scheduling program | 12 | the KDE calendar and scheduling program |
13 | optimized for 640x480 and 320x240 resolution | 13 | optimized for 640x480 and 320x240 resolution |
14 | on Zaurus PDA | 14 | on Zaurus PDA |
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index f7604ad..14feeee 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -180,49 +180,49 @@ void ComposeMail::pickAddress( ) | |||
180 | names+= ","; | 180 | names+= ","; |
181 | names+= "\""+list[i].realName() +"\"<" +list[i].preferredEmail() +">"; | 181 | names+= "\""+list[i].realName() +"\"<" +list[i].preferredEmail() +">"; |
182 | 182 | ||
183 | } | 183 | } |
184 | } | 184 | } |
185 | 185 | ||
186 | 186 | ||
187 | if ( line->text().isEmpty() ) { | 187 | if ( line->text().isEmpty() ) { |
188 | line->setText( names ); | 188 | line->setText( names ); |
189 | } else if ( !names.isEmpty() ) { | 189 | } else if ( !names.isEmpty() ) { |
190 | line->setText( line->text() + ", " + names ); | 190 | line->setText( line->text() + ", " + names ); |
191 | } | 191 | } |
192 | #else | 192 | #else |
193 | bool res = ExternalAppHandler::instance()->requestNameEmailUidListFromKAPI("QPE/Application/ompi", this->name() /* name is here the unique uid*/); | 193 | bool res = ExternalAppHandler::instance()->requestNameEmailUidListFromKAPI("QPE/Application/ompi", this->name() /* name is here the unique uid*/); |
194 | // the result should now arrive through method insertAttendees | 194 | // the result should now arrive through method insertAttendees |
195 | #endif | 195 | #endif |
196 | } | 196 | } |
197 | //the map includes name/email pairs, that comes from Ka/Pi | 197 | //the map includes name/email pairs, that comes from Ka/Pi |
198 | void ComposeMail::insertAttendees(const QString& uid,const QStringList& nameList,const QStringList& emailList,const QStringList& uidList) | 198 | void ComposeMail::insertAttendees(const QString& uid,const QStringList& nameList,const QStringList& emailList,const QStringList& uidList) |
199 | { | 199 | { |
200 | qDebug("ComposeMail::insertAttendees "); | 200 | qDebug("ComposeMail::insertAttendees "); |
201 | raise(); | 201 | raise(); |
202 | 202 | ||
203 | if ( mPickLineEdit == 0 ) { //whoami received | 203 | if ( mPickLineEdit == 0 ) { //whoami received |
204 | 204 | qDebug("returnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn "); | |
205 | QString defmail = uidList[0]; | 205 | QString defmail = uidList[0]; |
206 | if ( emailList.count() == 0 ) | 206 | if ( emailList.count() == 0 ) |
207 | QMessageBox::information( 0, tr( "Hint" ), | 207 | QMessageBox::information( 0, tr( "Hint" ), |
208 | tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 208 | tr( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
209 | tr( "Ok" ) ); | 209 | tr( "Ok" ) ); |
210 | if (defmail.length()!=0) { | 210 | if (defmail.length()!=0) { |
211 | fromBox->insertItem(defmail); | 211 | fromBox->insertItem(defmail); |
212 | } | 212 | } |
213 | QStringList::ConstIterator sit = emailList.begin(); | 213 | QStringList::ConstIterator sit = emailList.begin(); |
214 | int pref = 0; | 214 | int pref = 0; |
215 | for (;sit!=emailList.end();++sit) { | 215 | for (;sit!=emailList.end();++sit) { |
216 | if ( (*sit)==defmail) | 216 | if ( (*sit)==defmail) |
217 | continue; | 217 | continue; |
218 | fromBox->insertItem((*sit)); | 218 | fromBox->insertItem((*sit)); |
219 | } | 219 | } |
220 | senderNameEdit->setText(nameList[0]); | 220 | senderNameEdit->setText(nameList[0]); |
221 | return; | 221 | return; |
222 | } | 222 | } |
223 | QString names ; | 223 | QString names ; |
224 | QLineEdit *line = mPickLineEdit; | 224 | QLineEdit *line = mPickLineEdit; |
225 | if (uid == this->name()) | 225 | if (uid == this->name()) |
226 | { | 226 | { |
227 | for ( int i = 0; i < nameList.count(); i++) | 227 | for ( int i = 0; i < nameList.count(); i++) |
228 | { | 228 | { |
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index a3e1b86..65de770 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp | |||
@@ -26,36 +26,36 @@ int main( int argc, char **argv ) { | |||
26 | QPEApplication a( argc, argv ); | 26 | QPEApplication a( argc, argv ); |
27 | a.setKeepRunning (); | 27 | a.setKeepRunning (); |
28 | #else | 28 | #else |
29 | QApplication a( argc, argv ); | 29 | QApplication a( argc, argv ); |
30 | QApplication::setStyle( new QPlatinumStyle ()); | 30 | QApplication::setStyle( new QPlatinumStyle ()); |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | KGlobal::setAppName( "kmicromail" ); | 33 | KGlobal::setAppName( "kmicromail" ); |
34 | QString fileName ; | 34 | QString fileName ; |
35 | #ifndef DESKTOP_VERSION | 35 | #ifndef DESKTOP_VERSION |
36 | fileName = getenv("QPEDIR"); | 36 | fileName = getenv("QPEDIR"); |
37 | if ( QApplication::desktop()->width() > 320 ) | 37 | if ( QApplication::desktop()->width() > 320 ) |
38 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/icons22/"); | 38 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/icons22/"); |
39 | else | 39 | else |
40 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); | 40 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); |
41 | #else | 41 | #else |
42 | fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; | 42 | fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; |
43 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 43 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |
44 | #endif | 44 | #endif |
45 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail"))); | 45 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kmicromail"))); |
46 | OpieMail mw; | 46 | OpieMail mw; |
47 | #ifndef DESKTOP_VERSION | 47 | #ifndef DESKTOP_VERSION |
48 | //qDebug("CONNECT "); | 48 | //qDebug("CONNECT "); |
49 | QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& ))); | 49 | QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&mw, SLOT(message( const QCString&, const QByteArray& ))); |
50 | QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | 50 | // QObject::connect(&a, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); |
51 | a.showMainWidget(&mw ); | 51 | a.showMainWidget(&mw ); |
52 | #else | 52 | #else |
53 | a.setMainWidget(&mw ); | 53 | a.setMainWidget(&mw ); |
54 | mw.show(); | 54 | mw.show(); |
55 | //m.resize( 800, 600 ); | 55 | //m.resize( 800, 600 ); |
56 | QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); | 56 | QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); |
57 | #endif | 57 | #endif |
58 | int rv = a.exec(); | 58 | int rv = a.exec(); |
59 | return rv; | 59 | return rv; |
60 | 60 | ||
61 | } | 61 | } |
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 3e560c5..a1c5645 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -1,106 +1,109 @@ | |||
1 | // CHANGED 2004-09-31 Lutz Rogowski | 1 | // CHANGED 2004-09-31 Lutz Rogowski |
2 | // CHANGED 2004-08-06 Lutz Rogowski | 2 | // CHANGED 2004-08-06 Lutz Rogowski |
3 | 3 | ||
4 | #include "settingsdialog.h" | 4 | #include "settingsdialog.h" |
5 | #include "opiemail.h" | 5 | #include "opiemail.h" |
6 | #include "editaccounts.h" | 6 | #include "editaccounts.h" |
7 | #include "composemail.h" | 7 | #include "composemail.h" |
8 | #include "mailistviewitem.h" | 8 | #include "mailistviewitem.h" |
9 | #include "viewmail.h" | 9 | #include "viewmail.h" |
10 | #include "selectstore.h" | 10 | #include "selectstore.h" |
11 | #include "selectsmtp.h" | 11 | #include "selectsmtp.h" |
12 | 12 | ||
13 | #include <qmessagebox.h> | 13 | #include <qmessagebox.h> |
14 | #include <libkdepim/externalapphandler.h> | ||
14 | 15 | ||
15 | #include <qpe/qpeapplication.h> | 16 | #include <qpe/qpeapplication.h> |
16 | #include <libmailwrapper/smtpwrapper.h> | 17 | #include <libmailwrapper/smtpwrapper.h> |
17 | #include <libmailwrapper/mailtypes.h> | 18 | #include <libmailwrapper/mailtypes.h> |
18 | #include <libmailwrapper/abstractmail.h> | 19 | #include <libmailwrapper/abstractmail.h> |
19 | /* OPIE */ | 20 | /* OPIE */ |
20 | //#include <qpe/resource.h> | 21 | //#include <qpe/resource.h> |
21 | //#include <qpe/qpeapplication.h> | 22 | //#include <qpe/qpeapplication.h> |
22 | 23 | ||
23 | /* QT */ | 24 | /* QT */ |
24 | 25 | ||
25 | using namespace Opie::Core; | 26 | using namespace Opie::Core; |
26 | 27 | ||
27 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) | 28 | OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) |
28 | : MainWindow( parent, name) //, WStyle_ContextHelp ) | 29 | : MainWindow( parent, name) //, WStyle_ContextHelp ) |
29 | { | 30 | { |
30 | settings = new Settings(); | 31 | settings = new Settings(); |
31 | 32 | ||
32 | folderView->populate( settings->getAccounts() ); | 33 | folderView->populate( settings->getAccounts() ); |
33 | 34 | ||
34 | } | 35 | } |
35 | 36 | ||
36 | OpieMail::~OpieMail() | 37 | OpieMail::~OpieMail() |
37 | { | 38 | { |
38 | if (settings) delete settings; | 39 | if (settings) delete settings; |
39 | } | 40 | } |
40 | 41 | ||
41 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | 42 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) |
42 | { | 43 | { |
43 | 44 | ||
44 | } | 45 | } |
45 | #include <stdlib.h> | 46 | #include <stdlib.h> |
46 | void OpieMail::message(const QCString &msg, const QByteArray &data) | 47 | void OpieMail::message(const QCString &msg, const QByteArray &data) |
47 | { | 48 | { |
48 | // copied from old mail2 | 49 | // copied from old mail2 |
49 | static int ii = 0; | 50 | static int ii = 0; |
50 | 51 | qDebug("call ############################# %d ", ii); | |
51 | // block second call | 52 | // block second call |
52 | if ( ii < 2 ) { | 53 | if ( ii < 2 ) { |
53 | ++ii; | 54 | //++ii; |
54 | if ( ii > 1 ) { | 55 | if ( ii > 1 ) { |
55 | qDebug("qcop call blocked "); | 56 | qDebug("qcop call blocked "); |
56 | return; | 57 | //return; |
57 | } | 58 | } |
58 | } | 59 | } |
60 | ++ii; | ||
59 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); | 61 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); |
60 | if (msg == "writeMail(QString,QString)") | 62 | if (msg == "writeMail(QString,QString)") |
61 | { | 63 | { |
62 | QDataStream stream(data,IO_ReadOnly); | 64 | QDataStream stream(data,IO_ReadOnly); |
63 | QString name, email; | 65 | QString name, email; |
64 | stream >> name >> email; | 66 | stream >> name >> email; |
65 | // removing the whitespaces at beginning and end is needed! | 67 | // removing the whitespaces at beginning and end is needed! |
66 | slotwriteMail(name.stripWhiteSpace(),email.stripWhiteSpace()); | 68 | slotwriteMail(name.stripWhiteSpace(),email.stripWhiteSpace()); |
67 | } | 69 | } |
68 | else if (msg == "newMail()") | 70 | else if (msg == "newMail()") |
69 | { | 71 | { |
70 | slotComposeMail(); | 72 | slotComposeMail(); |
71 | } | 73 | } |
72 | else if (msg == "newMail(QString)") | 74 | else if (msg == "newMail(QString)") |
73 | { | 75 | { |
74 | QDataStream stream(data,IO_ReadOnly); | 76 | QDataStream stream(data,IO_ReadOnly); |
75 | QString nameemail; | 77 | QString nameemail; |
76 | stream >> nameemail; | 78 | stream >> nameemail; |
77 | // the format is | 79 | // the format is |
78 | // NAME <EMAIL>:SUBJECT | 80 | // NAME <EMAIL>:SUBJECT |
79 | //qDebug("message %s ", nameemail.latin1()); | 81 | //qDebug("message %s ", nameemail.latin1()); |
80 | 82 | ||
81 | slotwriteMail2( nameemail ); | 83 | slotwriteMail2( nameemail ); |
82 | } | 84 | } else |
85 | ExternalAppHandler::instance()->appMessage ( msg, data); | ||
83 | } | 86 | } |
84 | void OpieMail::slotwriteMail2(const QString& namemail ) | 87 | void OpieMail::slotwriteMail2(const QString& namemail ) |
85 | { | 88 | { |
86 | // qDebug("OpieMail::slotwriteMail2 "); | 89 | // qDebug("OpieMail::slotwriteMail2 "); |
87 | qApp->processEvents(); | 90 | qApp->processEvents(); |
88 | ComposeMail compose( settings, this, 0, true ); | 91 | ComposeMail compose( settings, this, 0, true ); |
89 | if ( !namemail.isEmpty() ) { | 92 | if ( !namemail.isEmpty() ) { |
90 | QString to = namemail; | 93 | QString to = namemail; |
91 | if ( namemail.find( " <") > 1 ) { | 94 | if ( namemail.find( " <") > 1 ) { |
92 | to = "\"" +to.replace( QRegExp( " <"), "\" <") ; | 95 | to = "\"" +to.replace( QRegExp( " <"), "\" <") ; |
93 | } else | 96 | } else |
94 | if ( namemail.find( "<") > 1 ) { | 97 | if ( namemail.find( "<") > 1 ) { |
95 | to = "\"" +to.replace( QRegExp( "<"), "\" <") ; | 98 | to = "\"" +to.replace( QRegExp( "<"), "\" <") ; |
96 | } | 99 | } |
97 | int sub = to.find( ">:"); | 100 | int sub = to.find( ">:"); |
98 | if ( sub > 0 ) { | 101 | if ( sub > 0 ) { |
99 | compose.setTo( to.left(sub+1) ); | 102 | compose.setTo( to.left(sub+1) ); |
100 | compose.setSubject( to.mid(sub+2) ); | 103 | compose.setSubject( to.mid(sub+2) ); |
101 | } else | 104 | } else |
102 | compose.setTo( to ); | 105 | compose.setTo( to ); |
103 | } | 106 | } |
104 | compose.slotAdjustColumns(); | 107 | compose.slotAdjustColumns(); |
105 | compose.showMaximized(); | 108 | compose.showMaximized(); |
106 | compose.exec(); | 109 | compose.exec(); |