diff options
Diffstat (limited to 'src/platform/API/Contact/EventContactManagerGetAddressBooks.h')
-rwxr-xr-x | src/platform/API/Contact/EventContactManagerGetAddressBooks.h | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/src/platform/API/Contact/EventContactManagerGetAddressBooks.h b/src/platform/API/Contact/EventContactManagerGetAddressBooks.h new file mode 100755 index 0000000..6f18240 --- /dev/null +++ b/src/platform/API/Contact/EventContactManagerGetAddressBooks.h @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file EventContactManagerGetAddressBooks.h + * @author Kisub Song (kisubs.song@samsung.com) + * @version 0.1 + * @brief + */ + +#ifndef _API_CONTACT_EVENT_CONTACT_MANAGER_GET_ADDRESS_BOOKS_H_ +#define _API_CONTACT_EVENT_CONTACT_MANAGER_GET_ADDRESS_BOOKS_H_ + +#include <string> +#include <dpl/shared_ptr.h> +#include <Commons/IEvent.h> +#include "IAddressBook.h" + +namespace TizenApis { +namespace Api { +namespace Contact { + +class EventContactManagerGetAddressBooks : public WrtDeviceApis::Commons::IEvent<EventContactManagerGetAddressBooks> +{ +private: + bool m_result; + + /* parameters */ + IAddressBookArrayPtr m_addressBooks; + + bool m_addressBooksIsSet; + +public: + EventContactManagerGetAddressBooks() : + m_result(false), + m_addressBooksIsSet(false) + { + } + + virtual ~EventContactManagerGetAddressBooks() + { + } + + virtual void clearOnCancel() + { + } + + void setResult(bool value) + { + m_result = value; + } + + bool getResult() const + { + return m_result; + } + + IAddressBookArrayPtr getAddressBooks() const + { + return m_addressBooks; + } + + void setAddressBooks(const IAddressBookArrayPtr &value) + { + m_addressBooks = value; + m_addressBooksIsSet = true; + } + + bool setAddressBooksIsSet() const + { + return m_addressBooksIsSet; + } +}; + +typedef DPL::SharedPtr<EventContactManagerGetAddressBooks> EventContactManagerGetAddressBooksPtr; + +} // Contact +} // Api +} // TizenApis + +#endif // _API_CONTACT_EVENT_CONTACT_MANAGER_GET_ADDRESS_BOOKS_H_ + |