#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 {
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;
account_h m_platformAccount;
EventAccountPtr m_abstractAccount;
+ UserAccount_t* account;
+
// static std::map<std::string, std::string> attrSvcMap;
};