author | zautrix <zautrix> | 2004-09-10 15:30:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-10 15:30:01 (UTC) |
commit | 4af018e98a29e859df1b28a437c4965bb9676394 (patch) (unidiff) | |
tree | ac71fa15fdd2eca263730493de378482952d8c80 | |
parent | 14056eb4ec076bc243dcb9f600999eb437fb8afd (diff) | |
download | kdepimpi-4af018e98a29e859df1b28a437c4965bb9676394.zip kdepimpi-4af018e98a29e859df1b28a437c4965bb9676394.tar.gz kdepimpi-4af018e98a29e859df1b28a437c4965bb9676394.tar.bz2 |
path fixes for kopiemail
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | Makefile.Embedded | 2 | ||||
-rw-r--r-- | kmicromail/kmicromail.desktop | 2 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/abstractmail.cpp | 2 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/settings.cpp | 20 | ||||
-rw-r--r-- | kmicromail/main.cpp | 8 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 2 | ||||
-rw-r--r-- | kopiemail.control | 2 |
8 files changed, 20 insertions, 20 deletions
@@ -175,33 +175,33 @@ variable_test: variable_info | |||
175 | objects: | 175 | objects: |
176 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 176 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
177 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 177 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
178 | mkdir -p libical/lib/$(PLATFORM) | 178 | mkdir -p libical/lib/$(PLATFORM) |
179 | 179 | ||
180 | clean: | 180 | clean: |
181 | rm -rf libical/lib/$(PLATFORM)/*; | 181 | rm -rf libical/lib/$(PLATFORM)/*; |
182 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 182 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
183 | 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; \ |
184 | done | 184 | done |
185 | install: | 185 | install: |
186 | cd bin/kdepim; make install | 186 | cd bin/kdepim; make install |
187 | cp -r Pim $(QPEDIR)/apps | 187 | cp -r Pim $(QPEDIR)/apps |
188 | cp db2file/db2file $(QPEDIR)/bin/db2file | 188 | cp db2file/db2file $(QPEDIR)/bin/db2file |
189 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 189 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
190 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 190 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
191 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | 191 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop |
192 | 192 | ||
193 | dist: | 193 | dist: |
194 | @echo Dont forget to do "make install" before "make dist" | 194 | @echo Dont forget to do "make install" before "make dist" |
195 | rm -f *arm.ipk | 195 | rm -f *arm.ipk |
196 | rm -f *~ | 196 | rm -f *~ |
197 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim | 197 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim |
198 | ./mkipks kmicrokdelibs.control | 198 | ./mkipks kmicrokdelibs.control |
199 | ./mkipks korganizer.control | 199 | ./mkipks korganizer.control |
200 | ./mkipks kaddressbook.control | 200 | ./mkipks kaddressbook.control |
201 | ifndef BUILD_NO_MICROMAIL | 201 | ifndef BUILD_NO_MICROMAIL |
202 | ./mkipks kopiemail.control | 202 | ./mkipks kopiemail.control |
203 | endif | 203 | endif |
204 | ./mkipks korganizer-alarm.control | 204 | ./mkipks korganizer-alarm.control |
205 | ifndef BUILD_NO_GAMMU | 205 | ifndef BUILD_NO_GAMMU |
206 | ./mkipks kammu.control | 206 | ./mkipks kammu.control |
207 | endif | 207 | endif |
diff --git a/Makefile.Embedded b/Makefile.Embedded index 2d0e855..ec2277e 100644 --- a/Makefile.Embedded +++ b/Makefile.Embedded | |||
@@ -175,33 +175,33 @@ variable_test: variable_info | |||
175 | objects: | 175 | objects: |
176 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 176 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done |
177 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 177 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done |
178 | mkdir -p libical/lib/$(PLATFORM) | 178 | mkdir -p libical/lib/$(PLATFORM) |
179 | 179 | ||
180 | clean: | 180 | clean: |
181 | rm -rf libical/lib/$(PLATFORM)/*; | 181 | rm -rf libical/lib/$(PLATFORM)/*; |
182 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 182 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ |
183 | 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; \ |
184 | done | 184 | done |
185 | install: | 185 | install: |
186 | cd bin/kdepim; make install | 186 | cd bin/kdepim; make install |
187 | cp -r Pim $(QPEDIR)/apps | 187 | cp -r Pim $(QPEDIR)/apps |
188 | cp db2file/db2file $(QPEDIR)/bin/db2file | 188 | cp db2file/db2file $(QPEDIR)/bin/db2file |
189 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 189 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
190 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 190 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
191 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | 191 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop |
192 | 192 | ||
193 | dist: | 193 | dist: |
194 | @echo Dont forget to do "make install" before "make dist" | 194 | @echo Dont forget to do "make install" before "make dist" |
195 | rm -f *arm.ipk | 195 | rm -f *arm.ipk |
196 | rm -f *~ | 196 | rm -f *~ |
197 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim | 197 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim |
198 | ./mkipks kmicrokdelibs.control | 198 | ./mkipks kmicrokdelibs.control |
199 | ./mkipks korganizer.control | 199 | ./mkipks korganizer.control |
200 | ./mkipks kaddressbook.control | 200 | ./mkipks kaddressbook.control |
201 | ifndef BUILD_NO_MICROMAIL | 201 | ifndef BUILD_NO_MICROMAIL |
202 | ./mkipks kopiemail.control | 202 | ./mkipks kopiemail.control |
203 | endif | 203 | endif |
204 | ./mkipks korganizer-alarm.control | 204 | ./mkipks korganizer-alarm.control |
205 | ifndef BUILD_NO_GAMMU | 205 | ifndef BUILD_NO_GAMMU |
206 | ./mkipks kammu.control | 206 | ./mkipks kammu.control |
207 | endif | 207 | endif |
diff --git a/kmicromail/kmicromail.desktop b/kmicromail/kmicromail.desktop index a23420a..e3efcc6 100644 --- a/kmicromail/kmicromail.desktop +++ b/kmicromail/kmicromail.desktop | |||
@@ -1,15 +1,15 @@ | |||
1 | [Desktop Entry] | 1 | [Desktop Entry] |
2 | CanFastload=1 | 2 | CanFastload=1 |
3 | Comment=OM/PI | 3 | Comment=OM/PI |
4 | Comment[de]=KM/PI | 4 | Comment[de]=KM/PI |
5 | Display=640x480/144dpi,480x640/144dpi | 5 | Display=640x480/144dpi,480x640/144dpi |
6 | Exec=ompi | 6 | Exec=ompi |
7 | GenericName= | 7 | GenericName= |
8 | GenericName[de]= | 8 | GenericName[de]= |
9 | Icon=kdepim/kmicromail/kmicromail | 9 | Icon=kdepim/kopiemail/kmicromail |
10 | MimeType= | 10 | MimeType= |
11 | Name=OM/Pi | 11 | Name=OM/Pi |
12 | StartupNotify=true | 12 | StartupNotify=true |
13 | Terminal=false | 13 | Terminal=false |
14 | TerminalOptions= | 14 | TerminalOptions= |
15 | Type=Application | 15 | Type=Application |
diff --git a/kmicromail/libmailwrapper/abstractmail.cpp b/kmicromail/libmailwrapper/abstractmail.cpp index 3b0ca1f..cef4e97 100644 --- a/kmicromail/libmailwrapper/abstractmail.cpp +++ b/kmicromail/libmailwrapper/abstractmail.cpp | |||
@@ -113,33 +113,33 @@ QString AbstractMail::gen_attachment_id() | |||
113 | if (!file.open(IO_ReadOnly ) ) | 113 | if (!file.open(IO_ReadOnly ) ) |
114 | return QString::null; | 114 | return QString::null; |
115 | 115 | ||
116 | QTextStream stream(&file); | 116 | QTextStream stream(&file); |
117 | 117 | ||
118 | return "{" + stream.read().stripWhiteSpace() + "}"; | 118 | return "{" + stream.read().stripWhiteSpace() + "}"; |
119 | } | 119 | } |
120 | 120 | ||
121 | int AbstractMail::createMbox(const QString&,const FolderP&,const QString& ,bool) | 121 | int AbstractMail::createMbox(const QString&,const FolderP&,const QString& ,bool) |
122 | { | 122 | { |
123 | return 0; | 123 | return 0; |
124 | } | 124 | } |
125 | 125 | ||
126 | QString AbstractMail::defaultLocalfolder() | 126 | QString AbstractMail::defaultLocalfolder() |
127 | { | 127 | { |
128 | // QString f = getenv( "HOME" ); | 128 | // QString f = getenv( "HOME" ); |
129 | QString f = locateLocal( "data", "kmicromail/localmail"); | 129 | QString f = locateLocal( "data", "kopiemail/localmail"); |
130 | // f += "/Applications/opiemail/localmail"; | 130 | // f += "/Applications/opiemail/localmail"; |
131 | return f; | 131 | return f; |
132 | } | 132 | } |
133 | 133 | ||
134 | QString AbstractMail::draftFolder() | 134 | QString AbstractMail::draftFolder() |
135 | { | 135 | { |
136 | return QString("Drafts"); | 136 | return QString("Drafts"); |
137 | } | 137 | } |
138 | 138 | ||
139 | /* temporary - will be removed when implemented in all classes */ | 139 | /* temporary - will be removed when implemented in all classes */ |
140 | void AbstractMail::deleteMails(const QString &,const QValueList<Opie::Core::OSmartPointer<RecMail> > &) | 140 | void AbstractMail::deleteMails(const QString &,const QValueList<Opie::Core::OSmartPointer<RecMail> > &) |
141 | { | 141 | { |
142 | } | 142 | } |
143 | void AbstractMail::deleteMailList(const QValueList<RecMailP>&target) | 143 | void AbstractMail::deleteMailList(const QValueList<RecMailP>&target) |
144 | { | 144 | { |
145 | //qDebug("AbstractMail::deleteMailList:: Please reimplement! "); | 145 | //qDebug("AbstractMail::deleteMailList:: Please reimplement! "); |
diff --git a/kmicromail/libmailwrapper/settings.cpp b/kmicromail/libmailwrapper/settings.cpp index bdb2a25..b0a539e 100644 --- a/kmicromail/libmailwrapper/settings.cpp +++ b/kmicromail/libmailwrapper/settings.cpp | |||
@@ -15,61 +15,61 @@ | |||
15 | #define POP3_PORT "110" | 15 | #define POP3_PORT "110" |
16 | #define POP3_SSL_PORT "995" | 16 | #define POP3_SSL_PORT "995" |
17 | #define NNTP_PORT "119" | 17 | #define NNTP_PORT "119" |
18 | #define NNTP_SSL_PORT "563" | 18 | #define NNTP_SSL_PORT "563" |
19 | 19 | ||
20 | 20 | ||
21 | Settings::Settings() | 21 | Settings::Settings() |
22 | : QObject() | 22 | : QObject() |
23 | { | 23 | { |
24 | updateAccounts(); | 24 | updateAccounts(); |
25 | } | 25 | } |
26 | 26 | ||
27 | void Settings::checkDirectory() | 27 | void Settings::checkDirectory() |
28 | { | 28 | { |
29 | qDebug("Settings::checkDirectory() "); | 29 | qDebug("Settings::checkDirectory() "); |
30 | return; | 30 | return; |
31 | locateLocal("data", "kmicromail" ); | 31 | locateLocal("data", "kopiemail" ); |
32 | /* | 32 | /* |
33 | if ( !QDir( (QString) getenv( "HOME" ) + "/Applications/opiemail/" ).exists() ) { | 33 | if ( !QDir( (QString) getenv( "HOME" ) + "/Applications/opiemail/" ).exists() ) { |
34 | system( "mkdir -p $HOME/Applications/opiemail" ); | 34 | system( "mkdir -p $HOME/Applications/opiemail" ); |
35 | qDebug("$HOME/Applications/opiemail created "); | 35 | qDebug("$HOME/Applications/opiemail created "); |
36 | } | 36 | } |
37 | */ | 37 | */ |
38 | } | 38 | } |
39 | 39 | ||
40 | QList<Account> Settings::getAccounts() | 40 | QList<Account> Settings::getAccounts() |
41 | { | 41 | { |
42 | return accounts; | 42 | return accounts; |
43 | } | 43 | } |
44 | 44 | ||
45 | void Settings::addAccount( Account *account ) | 45 | void Settings::addAccount( Account *account ) |
46 | { | 46 | { |
47 | accounts.append( account ); | 47 | accounts.append( account ); |
48 | } | 48 | } |
49 | 49 | ||
50 | void Settings::delAccount( Account *account ) | 50 | void Settings::delAccount( Account *account ) |
51 | { | 51 | { |
52 | accounts.remove( account ); | 52 | accounts.remove( account ); |
53 | account->remove(); | 53 | account->remove(); |
54 | } | 54 | } |
55 | 55 | ||
56 | void Settings::updateAccounts() | 56 | void Settings::updateAccounts() |
57 | { | 57 | { |
58 | accounts.clear(); | 58 | accounts.clear(); |
59 | QDir dir( locateLocal("data", "kmicromail" ) ); | 59 | QDir dir( locateLocal("data", "kopiemail" ) ); |
60 | QStringList::Iterator it; | 60 | QStringList::Iterator it; |
61 | 61 | ||
62 | QStringList imap = dir.entryList( "imap-*" ); | 62 | QStringList imap = dir.entryList( "imap-*" ); |
63 | for ( it = imap.begin(); it != imap.end(); it++ ) { | 63 | for ( it = imap.begin(); it != imap.end(); it++ ) { |
64 | IMAPaccount *account = new IMAPaccount( (*it).replace(0, 5, "") ); | 64 | IMAPaccount *account = new IMAPaccount( (*it).replace(0, 5, "") ); |
65 | accounts.append( account ); | 65 | accounts.append( account ); |
66 | } | 66 | } |
67 | 67 | ||
68 | QStringList pop3 = dir.entryList( "pop3-*" ); | 68 | QStringList pop3 = dir.entryList( "pop3-*" ); |
69 | for ( it = pop3.begin(); it != pop3.end(); it++ ) { | 69 | for ( it = pop3.begin(); it != pop3.end(); it++ ) { |
70 | POP3account *account = new POP3account( (*it).replace(0, 5, "") ); | 70 | POP3account *account = new POP3account( (*it).replace(0, 5, "") ); |
71 | accounts.append( account ); | 71 | accounts.append( account ); |
72 | } | 72 | } |
73 | 73 | ||
74 | QStringList smtp = dir.entryList( "smtp-*" ); | 74 | QStringList smtp = dir.entryList( "smtp-*" ); |
75 | for ( it = smtp.begin(); it != smtp.end(); it++ ) { | 75 | for ( it = smtp.begin(); it != smtp.end(); it++ ) { |
@@ -135,33 +135,33 @@ IMAPaccount::IMAPaccount() | |||
135 | IMAPaccount::IMAPaccount( QString filename ) | 135 | IMAPaccount::IMAPaccount( QString filename ) |
136 | : Account() | 136 | : Account() |
137 | { | 137 | { |
138 | file = filename; | 138 | file = filename; |
139 | accountName = "New IMAP Account"; | 139 | accountName = "New IMAP Account"; |
140 | ssl = false; | 140 | ssl = false; |
141 | connectionType = 1; | 141 | connectionType = 1; |
142 | type = MAILLIB::A_IMAP; | 142 | type = MAILLIB::A_IMAP; |
143 | port = IMAP_PORT; | 143 | port = IMAP_PORT; |
144 | } | 144 | } |
145 | 145 | ||
146 | QString IMAPaccount::getUniqueFileName() | 146 | QString IMAPaccount::getUniqueFileName() |
147 | { | 147 | { |
148 | int num = 0; | 148 | int num = 0; |
149 | QString unique; | 149 | QString unique; |
150 | 150 | ||
151 | QDir dir( locateLocal("data", "kmicromail" ) ); | 151 | QDir dir( locateLocal("data", "kopiemail" ) ); |
152 | 152 | ||
153 | QStringList imap = dir.entryList( "imap-*" ); | 153 | QStringList imap = dir.entryList( "imap-*" ); |
154 | do { | 154 | do { |
155 | unique.setNum( num++ ); | 155 | unique.setNum( num++ ); |
156 | } while ( imap.contains( "imap-" + unique ) > 0 ); | 156 | } while ( imap.contains( "imap-" + unique ) > 0 ); |
157 | 157 | ||
158 | return unique; | 158 | return unique; |
159 | } | 159 | } |
160 | 160 | ||
161 | void IMAPaccount::read() | 161 | void IMAPaccount::read() |
162 | { | 162 | { |
163 | Config *conf = new Config( getFileName(), Config::File ); | 163 | Config *conf = new Config( getFileName(), Config::File ); |
164 | conf->setGroup( "IMAP Account" ); | 164 | conf->setGroup( "IMAP Account" ); |
165 | accountName = conf->readEntry( "Account","" ); | 165 | accountName = conf->readEntry( "Account","" ); |
166 | if (accountName.isNull()) accountName = ""; | 166 | if (accountName.isNull()) accountName = ""; |
167 | server = conf->readEntry( "Server","" ); | 167 | server = conf->readEntry( "Server","" ); |
@@ -190,63 +190,63 @@ void IMAPaccount::save() | |||
190 | conf->writeEntry( "Account", accountName ); | 190 | conf->writeEntry( "Account", accountName ); |
191 | conf->writeEntry( "Server", server ); | 191 | conf->writeEntry( "Server", server ); |
192 | conf->writeEntry( "Port", port ); | 192 | conf->writeEntry( "Port", port ); |
193 | conf->writeEntry( "SSL", ssl ); | 193 | conf->writeEntry( "SSL", ssl ); |
194 | conf->writeEntry( "ConnectionType", connectionType ); | 194 | conf->writeEntry( "ConnectionType", connectionType ); |
195 | conf->writeEntry( "User", user ); | 195 | conf->writeEntry( "User", user ); |
196 | conf->writeEntryCrypt( "Password", password ); | 196 | conf->writeEntryCrypt( "Password", password ); |
197 | conf->writeEntry( "MailPrefix",prefix); | 197 | conf->writeEntry( "MailPrefix",prefix); |
198 | conf->writeEntry( "Offline",offline); | 198 | conf->writeEntry( "Offline",offline); |
199 | conf->write(); | 199 | conf->write(); |
200 | delete conf; | 200 | delete conf; |
201 | } | 201 | } |
202 | 202 | ||
203 | 203 | ||
204 | QString IMAPaccount::getFileName() | 204 | QString IMAPaccount::getFileName() |
205 | { | 205 | { |
206 | return locateLocal("data", "kmicromail" ) +"/imap-" + file; | 206 | return locateLocal("data", "kopiemail" ) +"/imap-" + file; |
207 | } | 207 | } |
208 | 208 | ||
209 | POP3account::POP3account() | 209 | POP3account::POP3account() |
210 | : Account() | 210 | : Account() |
211 | { | 211 | { |
212 | file = POP3account::getUniqueFileName(); | 212 | file = POP3account::getUniqueFileName(); |
213 | accountName = "New POP3 Account"; | 213 | accountName = "New POP3 Account"; |
214 | ssl = false; | 214 | ssl = false; |
215 | connectionType = 1; | 215 | connectionType = 1; |
216 | type = MAILLIB::A_POP3; | 216 | type = MAILLIB::A_POP3; |
217 | port = POP3_PORT; | 217 | port = POP3_PORT; |
218 | } | 218 | } |
219 | 219 | ||
220 | POP3account::POP3account( QString filename ) | 220 | POP3account::POP3account( QString filename ) |
221 | : Account() | 221 | : Account() |
222 | { | 222 | { |
223 | file = filename; | 223 | file = filename; |
224 | accountName = "New POP3 Account"; | 224 | accountName = "New POP3 Account"; |
225 | ssl = false; | 225 | ssl = false; |
226 | connectionType = 1; | 226 | connectionType = 1; |
227 | type = MAILLIB::A_POP3; | 227 | type = MAILLIB::A_POP3; |
228 | port = POP3_PORT; | 228 | port = POP3_PORT; |
229 | } | 229 | } |
230 | 230 | ||
231 | QString POP3account::getUniqueFileName() | 231 | QString POP3account::getUniqueFileName() |
232 | { | 232 | { |
233 | int num = 0; | 233 | int num = 0; |
234 | QString unique; | 234 | QString unique; |
235 | 235 | ||
236 | QDir dir( locateLocal("data", "kmicromail" ) ); | 236 | QDir dir( locateLocal("data", "kopiemail" ) ); |
237 | 237 | ||
238 | QStringList imap = dir.entryList( "pop3-*" ); | 238 | QStringList imap = dir.entryList( "pop3-*" ); |
239 | do { | 239 | do { |
240 | unique.setNum( num++ ); | 240 | unique.setNum( num++ ); |
241 | } while ( imap.contains( "pop3-" + unique ) > 0 ); | 241 | } while ( imap.contains( "pop3-" + unique ) > 0 ); |
242 | 242 | ||
243 | return unique; | 243 | return unique; |
244 | } | 244 | } |
245 | 245 | ||
246 | void POP3account::read() | 246 | void POP3account::read() |
247 | { | 247 | { |
248 | Config *conf = new Config( getFileName(), Config::File ); | 248 | Config *conf = new Config( getFileName(), Config::File ); |
249 | conf->setGroup( "POP3 Account" ); | 249 | conf->setGroup( "POP3 Account" ); |
250 | accountName = conf->readEntry( "Account" ); | 250 | accountName = conf->readEntry( "Account" ); |
251 | server = conf->readEntry( "Server" ); | 251 | server = conf->readEntry( "Server" ); |
252 | port = conf->readEntry( "Port" ); | 252 | port = conf->readEntry( "Port" ); |
@@ -266,33 +266,33 @@ void POP3account::save() | |||
266 | conf->setGroup( "POP3 Account" ); | 266 | conf->setGroup( "POP3 Account" ); |
267 | conf->writeEntry( "Account", accountName ); | 267 | conf->writeEntry( "Account", accountName ); |
268 | conf->writeEntry( "Server", server ); | 268 | conf->writeEntry( "Server", server ); |
269 | conf->writeEntry( "Port", port ); | 269 | conf->writeEntry( "Port", port ); |
270 | conf->writeEntry( "SSL", ssl ); | 270 | conf->writeEntry( "SSL", ssl ); |
271 | conf->writeEntry( "ConnectionType", connectionType ); | 271 | conf->writeEntry( "ConnectionType", connectionType ); |
272 | conf->writeEntry( "User", user ); | 272 | conf->writeEntry( "User", user ); |
273 | conf->writeEntryCrypt( "Password", password ); | 273 | conf->writeEntryCrypt( "Password", password ); |
274 | conf->writeEntry( "Offline",offline); | 274 | conf->writeEntry( "Offline",offline); |
275 | conf->write(); | 275 | conf->write(); |
276 | delete conf; | 276 | delete conf; |
277 | } | 277 | } |
278 | 278 | ||
279 | 279 | ||
280 | QString POP3account::getFileName() | 280 | QString POP3account::getFileName() |
281 | { | 281 | { |
282 | return locateLocal("data", "kmicromail" ) +"/pop3-" + file; | 282 | return locateLocal("data", "kopiemail" ) +"/pop3-" + file; |
283 | } | 283 | } |
284 | 284 | ||
285 | SMTPaccount::SMTPaccount() | 285 | SMTPaccount::SMTPaccount() |
286 | : Account() | 286 | : Account() |
287 | { | 287 | { |
288 | file = SMTPaccount::getUniqueFileName(); | 288 | file = SMTPaccount::getUniqueFileName(); |
289 | accountName = "New SMTP Account"; | 289 | accountName = "New SMTP Account"; |
290 | ssl = false; | 290 | ssl = false; |
291 | connectionType = 1; | 291 | connectionType = 1; |
292 | login = false; | 292 | login = false; |
293 | useCC = false; | 293 | useCC = false; |
294 | useBCC = false; | 294 | useBCC = false; |
295 | useReply = false; | 295 | useReply = false; |
296 | type = MAILLIB::A_SMTP; | 296 | type = MAILLIB::A_SMTP; |
297 | port = SMTP_PORT; | 297 | port = SMTP_PORT; |
298 | } | 298 | } |
@@ -301,33 +301,33 @@ SMTPaccount::SMTPaccount( QString filename ) | |||
301 | : Account() | 301 | : Account() |
302 | { | 302 | { |
303 | file = filename; | 303 | file = filename; |
304 | accountName = "New SMTP Account"; | 304 | accountName = "New SMTP Account"; |
305 | ssl = false; | 305 | ssl = false; |
306 | connectionType = 1; | 306 | connectionType = 1; |
307 | login = false; | 307 | login = false; |
308 | type = MAILLIB::A_SMTP; | 308 | type = MAILLIB::A_SMTP; |
309 | port = SMTP_PORT; | 309 | port = SMTP_PORT; |
310 | } | 310 | } |
311 | 311 | ||
312 | QString SMTPaccount::getUniqueFileName() | 312 | QString SMTPaccount::getUniqueFileName() |
313 | { | 313 | { |
314 | int num = 0; | 314 | int num = 0; |
315 | QString unique; | 315 | QString unique; |
316 | 316 | ||
317 | QDir dir( locateLocal("data", "kmicromail" ) ); | 317 | QDir dir( locateLocal("data", "kopiemail" ) ); |
318 | 318 | ||
319 | QStringList imap = dir.entryList( "smtp-*" ); | 319 | QStringList imap = dir.entryList( "smtp-*" ); |
320 | do { | 320 | do { |
321 | unique.setNum( num++ ); | 321 | unique.setNum( num++ ); |
322 | } while ( imap.contains( "smtp-" + unique ) > 0 ); | 322 | } while ( imap.contains( "smtp-" + unique ) > 0 ); |
323 | 323 | ||
324 | return unique; | 324 | return unique; |
325 | } | 325 | } |
326 | 326 | ||
327 | void SMTPaccount::read() | 327 | void SMTPaccount::read() |
328 | { | 328 | { |
329 | Config *conf = new Config( getFileName(), Config::File ); | 329 | Config *conf = new Config( getFileName(), Config::File ); |
330 | conf->setGroup( "SMTP Account" ); | 330 | conf->setGroup( "SMTP Account" ); |
331 | accountName = conf->readEntry( "Account" ); | 331 | accountName = conf->readEntry( "Account" ); |
332 | server = conf->readEntry( "Server" ); | 332 | server = conf->readEntry( "Server" ); |
333 | port = conf->readEntry( "Port" ); | 333 | port = conf->readEntry( "Port" ); |
@@ -347,63 +347,63 @@ void SMTPaccount::save() | |||
347 | conf->setGroup( "SMTP Account" ); | 347 | conf->setGroup( "SMTP Account" ); |
348 | conf->writeEntry( "Account", accountName ); | 348 | conf->writeEntry( "Account", accountName ); |
349 | conf->writeEntry( "Server", server ); | 349 | conf->writeEntry( "Server", server ); |
350 | conf->writeEntry( "Port", port ); | 350 | conf->writeEntry( "Port", port ); |
351 | conf->writeEntry( "SSL", ssl ); | 351 | conf->writeEntry( "SSL", ssl ); |
352 | conf->writeEntry( "ConnectionType", connectionType ); | 352 | conf->writeEntry( "ConnectionType", connectionType ); |
353 | conf->writeEntry( "Login", login ); | 353 | conf->writeEntry( "Login", login ); |
354 | conf->writeEntry( "User", user ); | 354 | conf->writeEntry( "User", user ); |
355 | conf->writeEntryCrypt( "Password", password ); | 355 | conf->writeEntryCrypt( "Password", password ); |
356 | conf->write(); | 356 | conf->write(); |
357 | delete conf; | 357 | delete conf; |
358 | } | 358 | } |
359 | 359 | ||
360 | 360 | ||
361 | QString SMTPaccount::getFileName() | 361 | QString SMTPaccount::getFileName() |
362 | { | 362 | { |
363 | return locateLocal("data", "kmicromail" ) +"/smtp-" + file; | 363 | return locateLocal("data", "kopiemail" ) +"/smtp-" + file; |
364 | } | 364 | } |
365 | 365 | ||
366 | NNTPaccount::NNTPaccount() | 366 | NNTPaccount::NNTPaccount() |
367 | : Account() | 367 | : Account() |
368 | { | 368 | { |
369 | file = NNTPaccount::getUniqueFileName(); | 369 | file = NNTPaccount::getUniqueFileName(); |
370 | accountName = "New NNTP Account"; | 370 | accountName = "New NNTP Account"; |
371 | ssl = false; | 371 | ssl = false; |
372 | login = false; | 372 | login = false; |
373 | type = MAILLIB::A_NNTP; | 373 | type = MAILLIB::A_NNTP; |
374 | port = NNTP_PORT; | 374 | port = NNTP_PORT; |
375 | } | 375 | } |
376 | 376 | ||
377 | NNTPaccount::NNTPaccount( QString filename ) | 377 | NNTPaccount::NNTPaccount( QString filename ) |
378 | : Account() | 378 | : Account() |
379 | { | 379 | { |
380 | file = filename; | 380 | file = filename; |
381 | accountName = "New NNTP Account"; | 381 | accountName = "New NNTP Account"; |
382 | ssl = false; | 382 | ssl = false; |
383 | login = false; | 383 | login = false; |
384 | type = MAILLIB::A_NNTP; | 384 | type = MAILLIB::A_NNTP; |
385 | port = NNTP_PORT; | 385 | port = NNTP_PORT; |
386 | } | 386 | } |
387 | 387 | ||
388 | QString NNTPaccount::getUniqueFileName() | 388 | QString NNTPaccount::getUniqueFileName() |
389 | { | 389 | { |
390 | int num = 0; | 390 | int num = 0; |
391 | QString unique; | 391 | QString unique; |
392 | 392 | ||
393 | QDir dir( locateLocal("data", "kmicromail" ) ); | 393 | QDir dir( locateLocal("data", "kopiemail" ) ); |
394 | 394 | ||
395 | QStringList imap = dir.entryList( "nntp-*" ); | 395 | QStringList imap = dir.entryList( "nntp-*" ); |
396 | do { | 396 | do { |
397 | unique.setNum( num++ ); | 397 | unique.setNum( num++ ); |
398 | } while ( imap.contains( "nntp-" + unique ) > 0 ); | 398 | } while ( imap.contains( "nntp-" + unique ) > 0 ); |
399 | 399 | ||
400 | return unique; | 400 | return unique; |
401 | } | 401 | } |
402 | 402 | ||
403 | void NNTPaccount::read() | 403 | void NNTPaccount::read() |
404 | { | 404 | { |
405 | Config *conf = new Config( getFileName(), Config::File ); | 405 | Config *conf = new Config( getFileName(), Config::File ); |
406 | conf->setGroup( "NNTP Account" ); | 406 | conf->setGroup( "NNTP Account" ); |
407 | accountName = conf->readEntry( "Account" ); | 407 | accountName = conf->readEntry( "Account" ); |
408 | server = conf->readEntry( "Server" ); | 408 | server = conf->readEntry( "Server" ); |
409 | port = conf->readEntry( "Port" ); | 409 | port = conf->readEntry( "Port" ); |
@@ -423,18 +423,18 @@ void NNTPaccount::save() | |||
423 | conf->setGroup( "NNTP Account" ); | 423 | conf->setGroup( "NNTP Account" ); |
424 | conf->writeEntry( "Account", accountName ); | 424 | conf->writeEntry( "Account", accountName ); |
425 | conf->writeEntry( "Server", server ); | 425 | conf->writeEntry( "Server", server ); |
426 | conf->writeEntry( "Port", port ); | 426 | conf->writeEntry( "Port", port ); |
427 | conf->writeEntry( "SSL", ssl ); | 427 | conf->writeEntry( "SSL", ssl ); |
428 | conf->writeEntry( "Login", login ); | 428 | conf->writeEntry( "Login", login ); |
429 | conf->writeEntry( "User", user ); | 429 | conf->writeEntry( "User", user ); |
430 | conf->writeEntryCrypt( "Password", password ); | 430 | conf->writeEntryCrypt( "Password", password ); |
431 | conf->writeEntry( "Subscribed" , subscribedGroups, ',' ); | 431 | conf->writeEntry( "Subscribed" , subscribedGroups, ',' ); |
432 | conf->write(); | 432 | conf->write(); |
433 | delete conf; | 433 | delete conf; |
434 | } | 434 | } |
435 | 435 | ||
436 | 436 | ||
437 | QString NNTPaccount::getFileName() | 437 | QString NNTPaccount::getFileName() |
438 | { | 438 | { |
439 | return locateLocal("data", "kmicromail" ) +"/nntp-" + file; | 439 | return locateLocal("data", "kopiemail" ) +"/nntp-" + file; |
440 | } | 440 | } |
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index 30637e2..db29ff3 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp | |||
@@ -17,42 +17,42 @@ | |||
17 | #include <kstandarddirs.h> | 17 | #include <kstandarddirs.h> |
18 | #include <kglobal.h> | 18 | #include <kglobal.h> |
19 | #include <stdio.h> | 19 | #include <stdio.h> |
20 | #include "mainwindow.h" | 20 | #include "mainwindow.h" |
21 | 21 | ||
22 | //using namespace Opie::Core; | 22 | //using namespace Opie::Core; |
23 | int main( int argc, char **argv ) { | 23 | int main( int argc, char **argv ) { |
24 | 24 | ||
25 | #ifndef DESKTOP_VERSION | 25 | #ifndef DESKTOP_VERSION |
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( "kopiemail" ); |
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/kopiemail/icons22/"); |
39 | else | 39 | else |
40 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kmicromail/"); | 40 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/"); |
41 | #else | 41 | #else |
42 | fileName = qApp->applicationDirPath () + "/kdepim/kmicromail/"; | 42 | fileName = qApp->applicationDirPath () + "/kdepim/kopiemail/"; |
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", "kopiemail"))); | 45 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kopiemail"))); |
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(); |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 5793a58..21edfd2 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -194,33 +194,33 @@ void MainWindow::showAbout() | |||
194 | 194 | ||
195 | 195 | ||
196 | 196 | ||
197 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" | 197 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" |
198 | "KOpieMail/Pi is based on Opie Mail\n" | 198 | "KOpieMail/Pi is based on Opie Mail\n" |
199 | "Copyright (c) Rajko Albrecht and the Opie team\n" | 199 | "Copyright (c) Rajko Albrecht and the Opie team\n" |
200 | "KOpieMail/Pi is licensed under the GPL\n" | 200 | "KOpieMail/Pi is licensed under the GPL\n" |
201 | "\n" | 201 | "\n" |
202 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" | 202 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" |
203 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" | 203 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" |
204 | "libEtPan has its own licence - see LibEtPan licence\n"; | 204 | "libEtPan has its own licence - see LibEtPan licence\n"; |
205 | 205 | ||
206 | KApplication::showText( cap, text ); | 206 | KApplication::showText( cap, text ); |
207 | } | 207 | } |
208 | void MainWindow::showEtpanLicence() | 208 | void MainWindow::showEtpanLicence() |
209 | { | 209 | { |
210 | KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" ); | 210 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); |
211 | 211 | ||
212 | } | 212 | } |
213 | void MainWindow::appMessage(const QCString &, const QByteArray &) | 213 | void MainWindow::appMessage(const QCString &, const QByteArray &) |
214 | { | 214 | { |
215 | qDebug("appMessage implemented by subclass"); | 215 | qDebug("appMessage implemented by subclass"); |
216 | } | 216 | } |
217 | 217 | ||
218 | void MainWindow::slotAdjustLayout() { | 218 | void MainWindow::slotAdjustLayout() { |
219 | 219 | ||
220 | /* | 220 | /* |
221 | QWidget *d = QApplication::desktop(); | 221 | QWidget *d = QApplication::desktop(); |
222 | 222 | ||
223 | if ( d->width() < d->height() ) { | 223 | if ( d->width() < d->height() ) { |
224 | layout->setDirection( QBoxLayout::TopToBottom ); | 224 | layout->setDirection( QBoxLayout::TopToBottom ); |
225 | } else { | 225 | } else { |
226 | layout->setDirection( QBoxLayout::LeftToRight ); | 226 | layout->setDirection( QBoxLayout::LeftToRight ); |
diff --git a/kopiemail.control b/kopiemail.control index 339396d..52cf554 100644 --- a/kopiemail.control +++ b/kopiemail.control | |||
@@ -1,14 +1,14 @@ | |||
1 | Files: bin/ompi apps/Pim/kmicromail.desktop pics/kdepim/kmicromail/* lib/libkmicro* | 1 | Files: bin/ompi apps/Pim/kopiemail.desktop pics/kdepim/kopiemail/* lib/libkmicro* |
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 |