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 FSclIRecordListener.h
18 * @brief This is the header file for the %IRecordListener interface.
20 * This header file contains the declarations of the %IRecordListener interface.
22 #ifndef _FSCL_IRECORD_LISTENER_H_
23 #define _FSCL_IRECORD_LISTENER_H_
25 #include <FBaseRtIEventListener.h>
26 #include <FBaseDataType.h>
28 namespace Tizen { namespace Base { namespace Collection
33 namespace Tizen { namespace Social
38 * @interface IRecordListener
39 * @brief <i> [Deprecated] </i> This interface represents a listener to asynchronously retrieve the records from the Calendarbook or Addressbook.
41 * @deprecated This interface is deprecated because the @ref Calendarbook::GetEventInstances method is deprecated.
45 * The %IRecordListener interface represents a listener to asynchronously retrieve the records from the Calendarbook or Addressbook.
48 class _OSP_EXPORT_ IRecordListener
49 : virtual public Tizen::Base::Runtime::IEventListener
55 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes @n
56 * are called when the destructor of this interface is called.
58 * @brief <i> [Deprecated] </i>
59 * @deprecated This method is deprecated because the %IRecordListener interface is deprecated.
64 virtual ~IRecordListener(void) {}
68 * Called when the requested records are retrieved.
70 * @brief <i> [Deprecated] </i>
71 * @deprecated This method is deprecated because the %IRecordListener interface is deprecated.
75 * @param[in] reqId The request ID
76 * @param[in] pRecords The result of a specific asynchronous method @n
77 * A list containing all of the retrieved Record instances, @n
78 * else an empty list if there are no retrieved records, or @c null if an exception occurs
79 * @param[in] r The result of the request
80 * @exception E_SUCCESS The request is successful.
81 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
82 * @remarks After using @c pRecords, the application must delete it.
83 * @see Calendarbook::GetEventInstances()
86 virtual void OnRecordsReceivedN(RequestId reqId, Tizen::Base::Collection::IList* pRecords, result r) = 0;
91 // This method is for internal use only. Using this method can cause behavioral, security-related,
92 // and consistency-related issues in the application.
93 // This method is reserved and may change its name at any time without prior notice.
97 virtual void IRecordListener_Reserved1(void) { }
100 // This method is for internal use only. Using this method can cause behavioral, security-related,
101 // and consistency-related issues in the application.
102 // This method is reserved and may change its name at any time without prior notice.
106 virtual void IRecordListener_Reserved2(void) { }
108 }; // IRecordListener
112 #endif // _FSCL_IRECORD_LISTENER_H_