///------------------------------------------------------/// 短消息///------------------------------------------------------///STEP1 创建会话CMsvSession* iSession = CMsvSession::OpenAsyncL(/*OBSERVER*/);///STEP2 通过会话得到根节点MsvEntry。短消息的存储是一个树形结构。CMsvEntry* root = iSession->GetEntryL(KMsvRootIndexEntryId);///STEP3 通过访问该树形结构,遍历所有短消息CMsvEntrySelection* rootChildren = root->ChildrenL();for (int i = 0; i < rootChildren->Count(); ++i){ CMsvEntry* sub = root->GetEntryL(rootChildren[i]); if (sub) { ///STEP4 递归处理 //... 如果sub是最底层短消息节点,处理。负责递归遍历sub孩子列表 delete sub; sub = NULL; }}delete rootChildren;rootChildren = NULL;delete root;root = NULL;delete iSession;iSession = NULL;