2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FApp_AppMessageImpl.h
20 * @brief This is the header file of the %_AppMessageImpl class.
22 * This header file contains the declarations of the %_AppMessageImpl class.
25 #ifndef _FAPP_INTERNAL_APP_MESSAGE_IMPL_H_
26 #define _FAPP_INTERNAL_APP_MESSAGE_IMPL_H_
30 #include <FBaseObject.h>
31 #include <FBaseString.h>
33 namespace Tizen { namespace Base { namespace Collection { class IList; } } }
35 namespace Tizen { namespace App
39 * @class _AppMessageImpl
45 class _OSP_EXPORT_ _AppMessageImpl
48 _AppMessageImpl(void);
50 ~_AppMessageImpl(void);
52 _AppMessageImpl(const _AppMessageImpl& rhs);
54 _AppMessageImpl& operator=(const _AppMessageImpl& rhs);
56 const bundle* GetBundle(void) const
61 bundle* GetBundle(void)
66 Tizen::Base::String GetValue(const wchar_t key[]) const;
68 Tizen::Base::String GetValue(const Tizen::Base::String& key) const;
70 result AddData(const Tizen::Base::String& key, const Tizen::Base::String& value);
72 result AddData(const Tizen::Base::Collection::IList* pList);
74 result AddData(const Tizen::Base::Collection::IMap* pMap);
76 result AddValueArray(const Tizen::Base::String& key, const Tizen::Base::Collection::IList* pList);
78 result AddValueArraySingle(const Tizen::Base::String& key, const Tizen::Base::String& value);
80 result RemoveData(const Tizen::Base::String& key);
82 static result SetOperation(bundle* pBundle, const Tizen::Base::String& operation);
84 static result SetUri(bundle* pBundle, const Tizen::Base::String& uri);
86 static result SetMime(bundle* pBundle, const Tizen::Base::String& mime);
88 static result SetCategory(bundle* pBundle, const Tizen::Base::String& category);
90 static result AddData(bundle* pBundle, const Tizen::Base::String& key, const Tizen::Base::String& value);
92 static result AddData(bundle* pBundle, const Tizen::Base::Collection::IList* pList);
94 static result RemoveData(bundle* pBundle, const Tizen::Base::String& key);
96 static result AddStringMap(bundle* pBundle, const Tizen::Base::Collection::IMap* pMap);
98 static Tizen::Base::Collection::ArrayList* GetValueArrayN(bundle* pBundle, const char* pKey);
99 static Tizen::Base::Collection::ArrayList* GetValueArrayN(bundle* pBundle, const Tizen::Base::String& key);
101 static result AddValueArray(bundle* pBundle, const char* pKey, const Tizen::Base::Collection::IList* pList);
102 static result AddValueArray(bundle* pBundle, const Tizen::Base::String& key, const Tizen::Base::Collection::IList* pList);
110 #endif //_FAPP_INTERNAL_APP_MESSAGE_IMPL_H_