×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:CContactDatabase::DeleteDefaultFileL()总是返回错误代码-14 KErrInUse

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update of Template:ArticleMetaData)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Fix metadata)
Line 1: Line 1:
{{ArticleMetaData
+
{{Archived|language=Lang-Chinese|timestamp=20120322082234|user=roy.debjit| }}
 +
{{ArticleMetaData <!-- v1.2 -->
 
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
Line 6: Line 7:
 
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
 
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
 
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->  
+
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
|signing=<!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
+
|signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
|id= <!-- Article Id (Knowledge base articles only) -->
+
|language= Lang-Chinese
|language=Lang-Chinese
+
|translated-by= [[User:Hoolee]]
|translated-by=[[User:Hoolee]]
+
|translated-from-title= Archived:CContactDatabase::DeleteDefaultFileL() always returns error code -14 KErrInUse (Known Issue)
|translated-from-title=KIS000774 - CContactDatabase::DeleteDefaultFileL() always returns error code -14; KErrInUse
+
|translated-from-id= 17807 <!-- automated guess -->
|translated-from-id=17807 <!-- automated guess -->
+
|review-by= <!-- After re-review: [[User:username]] -->
|review-by=<!-- After re-review: [[User:username]] -->
+
 
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 
|update-by= <!-- After significant update: [[User:username]]-->
 
|update-by= <!-- After significant update: [[User:username]]-->
 
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 
|update-timestamp= <!-- After significant update: YYYYMMDD -->
|creationdate=20080411
+
|creationdate= 20080411
|author=[[User:Technical writer 1]]
+
|author= [[User:Technical writer 1]]
 
}}
 
}}
  
Line 54: Line 54:
  
 
[[Category:Symbian C++]][[Category:Lang-Chinese]]
 
[[Category:Symbian C++]][[Category:Lang-Chinese]]
<!-- Translation --> [[en:KIS000774 - CContactDatabase::DeleteDefaultFileL() always returns error code -14; KErrInUse]]
+
<!-- Translation --> [[en:Archived:CContactDatabase::DeleteDefaultFileL() always returns error code -14 KErrInUse (Known Issue)]][[Category:PIM]] [[Category:S60 3rd Edition (initial release)]] [[Category:S60 3rd Edition FP1]] [[Category:Known Issue]]

Revision as of 04:32, 20 August 2012

Archived.png存档: 这篇文章是存档,因为考虑到今天它与第三方开发者建立商业解决方案不相关。

Article Metadata

KIS000774


  • 开发伙伴平台:

S60 3rd Edition, S60 3rd Edition FP1


  • 详细描述

CContactDatabase::DeleteDefaultFileL()这个静态方法总是返回错误代码-14,KErrInUse


  • 如何解决

S60第三版/S60第三饭,FP1文档(SDK帮助)声明静态函数CContactDatabase::DeleteDefaultFileL()删除了缺省的联系人数据库,但它总是返回错误-14,KErrInUse.


下列API都返回同样的错误:

 CContactDatabase::GetDefaultNameL(defaultDb);
 
CContactDatabase::DeleteDatabaseL(defaultDb);


  • 如何重演

写一个程序完成CContactDatabase::DeleteDefaultFileL(), 在手机端运行,检查其返回值


  • 解决方案

尚未有删除缺省联系人数据库的解决方案,一个简单有效的解决方案就是删除缺省联系人数据库中所有的联系人信息,可以使用DeleteContactsL(const CContactIdArray &aContactIds)来完成,替代前面所述的那个方法。

241 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×