Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / platform / API / Account / EventAccount.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 /**
19  * @file        EventAccount.h
20  *
21  * @version     0.1
22  */
23
24 #ifndef _ABSTRACT_LAYER_EVENT_ATTENDEE_H_
25 #define _ABSTRACT_LAYER_EVENT_ATTENDEE_H_
26
27 #include <string>
28 #include <vector>
29 #include <dpl/shared_ptr.h>
30 #include "AccountServices.h"
31
32 namespace TizenApis {
33 namespace Api {
34 namespace Account{
35
36 typedef std::vector<std::string> FeatureList;
37 typedef DPL::SharedPtr<FeatureList> FeatureListPtr;
38
39 class EventAccount
40 {
41   public:
42
43         static const int UNDEFINED_ACCOUNT_ID = -1;
44         EventAccount();
45         virtual ~EventAccount();
46
47         bool validate() const;
48
49         int getID() const;
50         void setID(const int &value);
51
52         std::string getAccountId() const;
53         void setAccountId(const std::string &value);
54
55         std::string getDisplayName() const;
56         void setDisplayName(const std::string &value);
57
58         std::string getIconPath() const;
59         void setIconPath(const std::string &value);
60
61         std::string getProviderName() const;
62         void setProviderName(const std::string &value);
63
64         bool getEnabled() const;
65         void setEnabled(bool &value);
66
67         std::string getCredentailId() const;
68         void setCredentailId(const std::string &value);
69
70         std::string getSettings() const;
71         void setSettings(const std::string &value);
72
73         std::string getServiceTypeId() const;
74         void setServiceTypeId(const std::string &value);
75
76         std::string getProviderId() const;
77         void setProviderId(const std::string &value);
78
79         std::string getprefix() const;
80         void setprefix(const std::string &value);
81
82         std::string getUserName() const;
83         void setUserName(const std::string &value);
84
85         std::string getPackageName() const;
86         void setPackageName(const std::string &value);
87
88         std::string getEmailAddress() const;
89         void setEmailAddress(const std::string &value);
90
91         std::string getDomainName() const;
92         void setDomainName(const std::string &value);
93
94         AccountServicesArrayPtr getService() const;
95         void setService(const AccountServicesArrayPtr &value);
96
97   protected:
98         int m_accountid;
99         std::string m_AccountId;
100         std::string m_displayname;
101         std::string m_iconPath;
102         std::string m_providername;
103         bool m_enabled;
104         std::string m_credentialId;
105         std::string m_settings;
106
107         std::string m_serviceTypeId;
108         std::string m_providerId;
109         std::string m_prefix;
110
111         std::string m_username;
112         std::string m_packagename;
113         std::string m_emailaddress;
114         std::string m_domainname;
115
116         AccountServicesArrayPtr                         m_service;
117
118 };
119
120 typedef DPL::SharedPtr<EventAccount> EventAccountPtr;
121 typedef std::vector<EventAccountPtr> EventAccountList;
122 typedef DPL::SharedPtr<EventAccountList> EventAccountListPtr;
123
124 }
125 }
126 }
127
128 #endif /* _ABSTRACT_LAYER_EVENT_ATTENDEE_H_ */