author | zautrix <zautrix> | 2004-09-16 15:13:40 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-16 15:13:40 (UTC) |
commit | 02e7ae4983679a787834277176a031286a8310c2 (patch) (unidiff) | |
tree | ea7e33e59b86b8fed2b033609d1018a9f245baff | |
parent | 68b1f3bce4b6e89bb343b965256537d93e63f7be (diff) | |
download | kdepimpi-02e7ae4983679a787834277176a031286a8310c2.zip kdepimpi-02e7ae4983679a787834277176a031286a8310c2.tar.gz kdepimpi-02e7ae4983679a787834277176a031286a8310c2.tar.bz2 |
Foldername fixes
-rw-r--r-- | Makefile | 31 | ||||
-rw-r--r-- | kmicromail/accountitem.cpp | 2 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/mailwrapper.cpp | 7 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/mailwrapper.h | 2 |
4 files changed, 34 insertions, 8 deletions
@@ -45,6 +45,9 @@ SUBDIRS_GAMMU = \ | |||
45 | gammu/emb/common \ | 45 | gammu/emb/common \ |
46 | gammu/emb/gammu | 46 | gammu/emb/gammu |
47 | 47 | ||
48 | SUBDIRS_PWMANAGER = \ | ||
49 | pwmanager/pwmanager | ||
50 | |||
48 | SUBDIRS = \ | 51 | SUBDIRS = \ |
49 | $(SUBDIRS_MICROKDE) \ | 52 | $(SUBDIRS_MICROKDE) \ |
50 | $(SUBDIRS_QTOPIA_PLUGIN) \ | 53 | $(SUBDIRS_QTOPIA_PLUGIN) \ |
@@ -52,7 +55,8 @@ SUBDIRS = \ | |||
52 | $(SUBDIRS_SHARP_PLUGIN) \ | 55 | $(SUBDIRS_SHARP_PLUGIN) \ |
53 | $(SUBDIRS_LDAP_PLUGIN) \ | 56 | $(SUBDIRS_LDAP_PLUGIN) \ |
54 | $(SUBDIRS_MICROMAIL) \ | 57 | $(SUBDIRS_MICROMAIL) \ |
55 | $(SUBDIRS_GAMMU) | 58 | $(SUBDIRS_GAMMU) \ |
59 | $(SUBDIRS_PWMANAGER) | ||
56 | 60 | ||
57 | all: build_microkde \ | 61 | all: build_microkde \ |
58 | build_qtopia_plugin \ | 62 | build_qtopia_plugin \ |
@@ -60,7 +64,8 @@ all: build_microkde \ | |||
60 | build_sharp_plugin \ | 64 | build_sharp_plugin \ |
61 | build_ldap_plugin \ | 65 | build_ldap_plugin \ |
62 | build_micromail \ | 66 | build_micromail \ |
63 | build_gammu | 67 | build_gammu \ |
68 | build_pwmanager | ||
64 | 69 | ||
65 | 70 | ||
66 | build_microkde: variable_test tmake | 71 | build_microkde: variable_test tmake |
@@ -119,6 +124,15 @@ build_gammu: variable_test tmake | |||
119 | done | 124 | done |
120 | endif | 125 | endif |
121 | 126 | ||
127 | build_pwmanager: build_microkde | ||
128 | ifdef BUILD_NO_PWMANAGER | ||
129 | @echo == pwmanager not build. | ||
130 | else | ||
131 | for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ | ||
132 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | ||
133 | done | ||
134 | endif | ||
135 | |||
122 | 136 | ||
123 | variable_info: | 137 | variable_info: |
124 | @echo -------------------------------------- | 138 | @echo -------------------------------------- |
@@ -137,6 +151,7 @@ variable_info: | |||
137 | @echo SHARPDTMSDK=$(SHARPDTMSDK) | 151 | @echo SHARPDTMSDK=$(SHARPDTMSDK) |
138 | endif | 152 | endif |
139 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) | 153 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) |
154 | @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) | ||
140 | @echo -------------------------------------- | 155 | @echo -------------------------------------- |
141 | 156 | ||
142 | variable_test: variable_info | 157 | variable_test: variable_info |
@@ -169,6 +184,9 @@ variable_test: variable_info | |||
169 | ifdef BUILD_NO_GAMMU | 184 | ifdef BUILD_NO_GAMMU |
170 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) | 185 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) |
171 | endif | 186 | endif |
187 | ifdef BUILD_NO_PWMANAGER | ||
188 | @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) | ||
189 | endif | ||
172 | @echo -------------------------------------- | 190 | @echo -------------------------------------- |
173 | 191 | ||
174 | 192 | ||
@@ -190,6 +208,7 @@ install: | |||
190 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 208 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop |
191 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 209 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop |
192 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop | 210 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop |
211 | cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop | ||
193 | 212 | ||
194 | dist: | 213 | dist: |
195 | @echo Dont forget to do "make install" before "make dist" | 214 | @echo Dont forget to do "make install" before "make dist" |
@@ -206,6 +225,9 @@ dist: | |||
206 | ifndef BUILD_NO_GAMMU | 225 | ifndef BUILD_NO_GAMMU |
207 | ./mkipks kammu.control | 226 | ./mkipks kammu.control |
208 | endif | 227 | endif |
228 | ifndef BUILD_NO_PWMANAGER | ||
229 | ./mkipks pwmanager.control | ||
230 | endif | ||
209 | ./mkipks pim_TAB_icon.control | 231 | ./mkipks pim_TAB_icon.control |
210 | 232 | ||
211 | tmake: objects \ | 233 | tmake: objects \ |
@@ -231,7 +253,7 @@ tmake: objects \ | |||
231 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ | 253 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ |
232 | gammu/emb/common/Makefile$(PLATFORM) \ | 254 | gammu/emb/common/Makefile$(PLATFORM) \ |
233 | gammu/emb/gammu/Makefile$(PLATFORM) \ | 255 | gammu/emb/gammu/Makefile$(PLATFORM) \ |
234 | 256 | pwmanager/pwmanager/Makefile$(PLATFORM) \ | |
235 | 257 | ||
236 | 258 | ||
237 | 259 | ||
@@ -301,3 +323,6 @@ gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro | |||
301 | 323 | ||
302 | gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro | 324 | gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro |
303 | cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" gammuE.pro -o Makefile$(PLATFORM) | 325 | cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" gammuE.pro -o Makefile$(PLATFORM) |
326 | |||
327 | pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro | ||
328 | cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" pwmanagerE.pro -o Makefile$(PLATFORM) | ||
diff --git a/kmicromail/accountitem.cpp b/kmicromail/accountitem.cpp index 59c8abb..12d047a 100644 --- a/kmicromail/accountitem.cpp +++ b/kmicromail/accountitem.cpp | |||
@@ -495,7 +495,7 @@ void IMAPviewItem::refreshFolders(bool force) | |||
495 | titem = item; | 495 | titem = item; |
496 | item = new IMAPfolderItem( (*it),pitem,pitem->firstChild(),this); | 496 | item = new IMAPfolderItem( (*it),pitem,pitem->firstChild(),this); |
497 | /* setup the short name */ | 497 | /* setup the short name */ |
498 | item->setText(0,(*it)->getDisplayName().right((*it)->getDisplayName().length()-pos-1)); | 498 | item->setText(0,(*it)->getDisplayName().mid(pos+1)); |
499 | item = titem; | 499 | item = titem; |
500 | } | 500 | } |
501 | else | 501 | else |
diff --git a/kmicromail/libmailwrapper/mailwrapper.cpp b/kmicromail/libmailwrapper/mailwrapper.cpp index 9400649..2ee1ab3 100644 --- a/kmicromail/libmailwrapper/mailwrapper.cpp +++ b/kmicromail/libmailwrapper/mailwrapper.cpp | |||
@@ -46,11 +46,12 @@ const QString& Folder::Separator()const | |||
46 | return separator; | 46 | return separator; |
47 | } | 47 | } |
48 | 48 | ||
49 | IMAPFolder::IMAPFolder(const QString&name,const QString&sep, bool select,bool no_inf, const QString&aprefix ) | 49 | IMAPFolder::IMAPFolder(const QString&t_name,const QString&sep, bool select,bool no_inf, const QString&aprefix ) |
50 | : Folder( name,sep ),m_MaySelect(select),m_NoInferior(no_inf) | 50 | : Folder( t_name,sep ),m_MaySelect(select),m_NoInferior(no_inf) |
51 | { | 51 | { |
52 | // Decode IMAP foldername | 52 | // Decode IMAP foldername |
53 | nameDisplay = IMAPFolder::decodeFolderName( name ); | 53 | nameDisplay = IMAPFolder::decodeFolderName( t_name ); |
54 | name = nameDisplay ; | ||
54 | /* | 55 | /* |
55 | odebug << "folder " + name + " - displayed as " + nameDisplay << oendl; | 56 | odebug << "folder " + name + " - displayed as " + nameDisplay << oendl; |
56 | */ | 57 | */ |
diff --git a/kmicromail/libmailwrapper/mailwrapper.h b/kmicromail/libmailwrapper/mailwrapper.h index cefe64e..2ba908b 100644 --- a/kmicromail/libmailwrapper/mailwrapper.h +++ b/kmicromail/libmailwrapper/mailwrapper.h | |||
@@ -120,8 +120,8 @@ class IMAPFolder : public Folder | |||
120 | virtual ~IMAPFolder(); | 120 | virtual ~IMAPFolder(); |
121 | virtual bool may_select()const{return m_MaySelect;} | 121 | virtual bool may_select()const{return m_MaySelect;} |
122 | virtual bool no_inferior()const{return m_NoInferior;} | 122 | virtual bool no_inferior()const{return m_NoInferior;} |
123 | private: | ||
124 | static QString decodeFolderName( const QString &name ); | 123 | static QString decodeFolderName( const QString &name ); |
124 | private: | ||
125 | bool m_MaySelect,m_NoInferior; | 125 | bool m_MaySelect,m_NoInferior; |
126 | }; | 126 | }; |
127 | 127 | ||