+}
+
+wxString frmImportContacts::GetAccountType()
+{
+
+ wxString preffilename = GetUserPrefDir();
+
+ XABPreferences preferences(preffilename);
+
+ wxString AccountType;
+
+ //XABPrefAccounts prefaccounts;
+
+ wxTreeItemIdValue cookie;
+ wxTreeItemId next = treAccounts->GetRootItem();
+
+ wxTreeItemId selectedChild = treAccounts->GetSelection();
+ wxTreeItemId nextChild;
+
+ for (int i = 0; i < preferences.accounts.GetCount(); i++){
+
+ if (!nextChild){
+ nextChild = treAccounts->GetFirstChild(next, cookie);
+ } else {
+ nextChild = treAccounts->GetNextSibling(nextChild);
+ }
+
+ if (nextChild == selectedChild){
+
+ std::map<int, wxString>::iterator AccTypeIter = AccountAccTypeList.find(i);
+
+ AccountType = AccTypeIter->second;
+
+ }
+
+
+ }
+
+ return AccountType;
+
+}
+
+bool frmImportContacts::GetDialogResult(){
+
+ return DialogResult;
+