diff options
Diffstat (limited to 'mobile_src/Contact/ContactFactory.h')
-rw-r--r-- | mobile_src/Contact/ContactFactory.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/mobile_src/Contact/ContactFactory.h b/mobile_src/Contact/ContactFactory.h new file mode 100644 index 0000000..c8af493 --- /dev/null +++ b/mobile_src/Contact/ContactFactory.h @@ -0,0 +1,52 @@ +// +// Tizen Web Device API +// Copyright (c) 2012 Samsung Electronics Co., Ltd. +// +// 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 ContactFactory.h + * @version 0.1 + * @brief + * ## + */ + +#ifndef _API_CONTACT_CONTACT_FACTORY_H_ +#define _API_CONTACT_CONTACT_FACTORY_H_ + +#include <dpl/shared_ptr.h> +#include "IContactManager.h" +#include "IContact.h" +#include "IPerson.h" + +namespace DeviceAPI { +namespace Contact { + +class ContactFactory : private DPL::Noncopyable +{ +private: + ContactFactory() + { + } +public: + static ContactFactory& getInstance(); + ContactManagerPtr createContactManager(); + ContactPtr createContact(); + PersonPtr createPerson(); +}; + +} // Contact +} // DeviceAPI + +#endif // _API_CONTACT_CONTACT_FACTORY_H_ |