2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
17 * @file FSclIAccountEventListener.h
18 * @brief This is the header file for the %IAccountEventListener interface.
20 * This header file contains the declarations of the %IAccountEventListener interface.
22 #ifndef _FSCL_IACCOUNT_EVENT_LISTENER_H_
23 #define _FSCL_IACCOUNT_EVENT_LISTENER_H_
25 #include <FBaseRtIEventListener.h>
26 #include <FSclTypes.h>
28 namespace Tizen { namespace Base { namespace Collection {
32 namespace Tizen { namespace Social
36 * @interface IAccountEventListener
37 * @brief This interface provides a listener that receives the events associated with account changes.
41 * The %IAccountEventListener interface provides a listener that receives the events associated with account changes.
44 class _OSP_EXPORT_ IAccountEventListener
45 : virtual public Tizen::Base::Runtime::IEventListener
50 * This polymorphic destructor should be overridden if required. @n
51 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
55 virtual ~IAccountEventListener(void) {}
58 * Called to notify when an account is added.
62 * @param[in] accountId The account ID of the added account
64 virtual void OnAccountAdded(AccountId accountId) = 0;
67 * Called to notify when an account is updated.
71 * @param[in] accountId The account ID of the updated account
73 virtual void OnAccountUpdated(AccountId accountId) = 0;
76 * Called to notify when an account is removed.
80 * @param[in] accountId The account ID of the removed account
82 virtual void OnAccountRemoved(AccountId accountId) = 0;
86 // This method is for internal use only. Using this method can cause behavioral, security-related,
87 // and consistency-related issues in the application.
88 // This method is reserved and may change its name at any time without prior notice.
92 virtual void IAccountEventListener_Reserved1(void){ }
95 // This method is for internal use only. Using this method can cause behavioral, security-related,
96 // and consistency-related issues in the application.
97 // This method is reserved and may change its name at any time without prior notice.
101 virtual void IAccountEventListener_Reserved2(void){ }
104 // This method is for internal use only. Using this method can cause behavioral, security-related,
105 // and consistency-related issues in the application.
106 // This method is reserved and may change its name at any time without prior notice.
110 virtual void IAccountEventListener_Reserved3(void){ }
113 // This method is for internal use only. Using this method can cause behavioral, security-related,
114 // and consistency-related issues in the application.
115 // This method is reserved and may change its name at any time without prior notice.
119 virtual void IAccountEventListener_Reserved4(void){ }
122 // This method is for internal use only. Using this method can cause behavioral, security-related,
123 // and consistency-related issues in the application.
124 // This method is reserved and may change its name at any time without prior notice.
128 virtual void IAccountEventListener_Reserved5(void){ }
130 }; // IAccountEventListener
134 #endif // _FSCL_IACCOUNT_EVENT_LISTENER_H_