2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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.
17 * ConversationQueryGenerator.h
19 * Created on: 2011. 10. 31.
23 #ifndef CONVERSATIONQUERYGENERATOR_H_
24 #define CONVERSATIONQUERYGENERATOR_H_
26 #include <API/Filter/IFilterVisitor.h>
27 #include "MessageQueryGenerator.h"
35 class ConversationQueryGenerator : public MessageQueryGenerator{
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);
42 virtual ~ConversationQueryGenerator();
45 virtual void setSmsMmsAttributeMap();
46 virtual std::string getMatchExactlyClause(std::string& attrName, Api::Tizen::AnyPtr& value);
48 virtual std::string getQueryPrefix();
49 virtual std::string getQuerySuffix();
51 virtual std::string getMessageDirectionString();
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;
60 static const std::string STRING_DIRECTION;
63 typedef DPL::SharedPtr<ConversationQueryGenerator> ConversationQueryGeneratorPtr;
69 #endif /* CONVERSATIONQUERYGENERATOR_H_ */