Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / Tizen / Account / AccountWrapper.h
index ad47391..138d03d 100755 (executable)
 #include <API/Account/EventAccount.h>
 #include <API/Account/AccountServiceTypeProperty.h>
 #include <API/Account/AccountServiceProviderProperty.h>
-#include "account.h"
+#include <API/Account/AccountServiceFilterProperty.h>
 
+#include "account.h"
 
 using namespace TizenApis::Api::Account;
 using namespace WrtDeviceApis::Commons;
 
+typedef struct
+{
+       char* AccountId;
+       char* displayName;
+       char* icon;
+       bool enabled;
+       char* AccountServiceProviderId;
+       unsigned long credentialId;
+       GList* services; // AccountService_t
+       char* settings;
+}UserAccount_t;
 
 namespace TizenApis {
 namespace Platform {
@@ -58,15 +70,18 @@ class AccountWrapper
                void        loadAccount(int id);
                void        deleteAccount();
                void            getAccountbyId();
-               void            getServiceTypebyId();
-               void            getProviderbyId();
-               void            findProviders();
-void findServiceTypes();
+               AccountServiceProviderPropertyArrayPtr          findProviders(std::string serviceTypeId);
+               AccountServiceTypePropertyArrayPtr              findServiceTypes();
+               void            setTags(std::vector<std::string> &tagsVector, GList* tags_list);
+
+               AccountServiceTypePropertyPtr getAccountServiceTypebyId();
+               AccountServiceProviderPropertyPtr getAccountServiceProviderProperty();
+
+               EventAccountListPtr findAccountsByFilter(AccountServiceFilterPropertyPtr filterPropertyPtr);
+               AccountServicesArrayPtr findServiceByFilter(AccountServiceFilterPropertyPtr filterPropertyPtr);
 
                //dummy method
                void setDummyServices();
-               AccountServiceTypePropertyPtr     getDummyAccountServiceType();
-               AccountServiceProviderPropertyPtr getDummyAccountServiceProviderProperty();
 
        protected:
                int  getIDFromPlatformAccount() const;
@@ -99,6 +114,8 @@ void findServiceTypes();
                account_h m_platformAccount;
                EventAccountPtr m_abstractAccount;
 
+               UserAccount_t* account;
+
 //             static std::map<std::string, std::string> attrSvcMap;
 
 };