Update change log and spec for wrt-plugins-tizen_0.2.73
[profile/ivi/wrt-plugins-tizen.git] / src / platform / Tizen / Messaging / ConversationQueryGenerator.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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. 
15 */
16 /*
17  * ConversationQueryGenerator.h
18  *
19  *  Created on: 2011. 10. 31.
20  *      Author: sangtai
21  */
22
23 #ifndef CONVERSATIONQUERYGENERATOR_H_
24 #define CONVERSATIONQUERYGENERATOR_H_
25
26 #include <API/Filter/IFilterVisitor.h>
27 #include "MessageQueryGenerator.h"
28
29 namespace TizenApis {
30
31         namespace Platform {
32                 namespace Messaging {
33
34
35                 class ConversationQueryGenerator : public MessageQueryGenerator{
36
37                         public:
38                                 ConversationQueryGenerator();
39                                 ConversationQueryGenerator(const Api::Tizen::SortModePtr& sortMode, const long limit, const long offset);
40                                 ConversationQueryGenerator(const Api::Tizen::SortModePtr& sortMode, const long limit, const long offset, const int type);
41
42                                 virtual ~ConversationQueryGenerator();
43
44                         protected:
45                                 virtual void setSmsMmsAttributeMap();
46                                 virtual std::string getMatchExactlyClause(std::string& attrName, Api::Tizen::AnyPtr& value);
47
48                                 virtual std::string getQueryPrefix();
49                                 virtual std::string getQuerySuffix();
50
51                                 virtual std::string getMessageDirectionString();
52
53                         private:
54                                 static const std::string QUERY_PREFIX_SMS;
55                                 static const std::string QUERY_PREFIX_MMS;                              
56                                 static const std::string QUERY_PREFIX_EMAIL;
57                                 static const std::string QUERY_SUFFIX_SMS_MMS;
58                                 static const std::string QUERY_SUFFIX_EMAIL;
59
60                                 static const std::string STRING_DIRECTION;
61                 };
62
63                 typedef DPL::SharedPtr<ConversationQueryGenerator> ConversationQueryGeneratorPtr;
64
65                 }       //Messaging
66         }       //Platform
67 }       //TizenApis
68
69 #endif /* CONVERSATIONQUERYGENERATOR_H_ */