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.
18 * @file FApp_AppMessageImpl.h
19 * @brief This is the header file of the %_AppMessageImpl class.
21 * This header file contains the declarations of the %_AppMessageImpl class.
24 #ifndef _FAPP_INTERNAL_APP_MESSAGE_IMPL_H_
25 #define _FAPP_INTERNAL_APP_MESSAGE_IMPL_H_
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
30 typedef struct _bundle_t bundle;
33 namespace Tizen { namespace Base { namespace Collection { class IList; } } }
34 namespace Tizen { namespace Base { namespace Collection { class IMap; } } }
35 namespace Tizen { namespace Base { namespace Collection { class ArrayList; } } }
37 namespace Tizen { namespace App
41 * @class _AppMessageImpl
47 class _OSP_EXPORT_ _AppMessageImpl
50 _AppMessageImpl(void);
52 ~_AppMessageImpl(void);
54 _AppMessageImpl(const _AppMessageImpl& rhs);
56 _AppMessageImpl& operator=(const _AppMessageImpl& rhs);
58 const bundle* GetBundle(void) const
63 bundle* GetBundle(void)
68 Tizen::Base::String GetValue(const wchar_t key[]) const;
70 Tizen::Base::String GetValue(const Tizen::Base::String& key) const;
72 result AddData(const Tizen::Base::String& key, const Tizen::Base::String& value);
74 result AddData(const Tizen::Base::Collection::IList* pList);
76 result AddData(const Tizen::Base::Collection::IMap* pMap);
78 result AddValueArray(const Tizen::Base::String& key, const Tizen::Base::Collection::IList* pList);
80 result AddValueArraySingle(const Tizen::Base::String& key, const Tizen::Base::String& value);
82 result RemoveData(const Tizen::Base::String& key);
84 static result SetOperation(bundle* pBundle, const Tizen::Base::String& operation);
86 static result SetUri(bundle* pBundle, const Tizen::Base::String& uri);
88 static result SetMime(bundle* pBundle, const Tizen::Base::String& mime);
90 static result SetCategory(bundle* pBundle, const Tizen::Base::String& category);
92 static result AddData(bundle* pBundle, const Tizen::Base::String& key, const Tizen::Base::String& value);
94 static result AddData(bundle* pBundle, const Tizen::Base::Collection::IList* pList);
96 static result RemoveData(bundle* pBundle, const Tizen::Base::String& key);
98 static result AddStringMap(bundle* pBundle, const Tizen::Base::Collection::IMap* pMap);
100 static Tizen::Base::Collection::ArrayList* GetValueArrayN(bundle* pBundle, const char* pKey);
101 static Tizen::Base::Collection::ArrayList* GetValueArrayN(bundle* pBundle, const Tizen::Base::String& key);
103 static result AddValueArray(bundle* pBundle, const char* pKey, const Tizen::Base::Collection::IList* pList);
104 static result AddValueArray(bundle* pBundle, const Tizen::Base::String& key, const Tizen::Base::Collection::IList* pList);
112 #endif //_FAPP_INTERNAL_APP_MESSAGE_IMPL_H_