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 * StorageChangesFolderFilterValidatorFactory.cpp
19 * Created on: 2011. 10. 27.
23 #include "StorageChangesFolderFilterValidatorFactory.h"
25 using namespace TizenApis::Api::Tizen;
31 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_ID = "id";
32 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_PARENT_ID = "parentId";
33 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_ACCOUNT_ID = "serviceId";
34 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_CONTENT_TYPE = "contentType";
35 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_NAME = "name";
36 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_PATH = "path";
37 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_TYPE = "type";
38 const std::string StorageChangesFolderFilterValidatorFactory::ATTRIBUTE_SYNCHRONIZABLE = "synchronizable";
40 static PropertyStructArray properties =
42 {"id", Api::Tizen::PrimitiveType_String},
43 {"parentId", Api::Tizen::PrimitiveType_String},
44 {"serviceId", Api::Tizen::PrimitiveType_String},
45 {"contentType", Api::Tizen::PrimitiveType_String},
46 {"name", Api::Tizen::PrimitiveType_String},
47 {"path", Api::Tizen::PrimitiveType_String},
48 {"type", Api::Tizen::PrimitiveType_String},
49 {"synchronizable", Api::Tizen::PrimitiveType_Number},
50 {0, Api::Tizen::PrimitiveType_Notype}
53 static MatchFlagStrArray matchFlag{
61 StorageChangesFolderFilterValidatorPtr StorageChangesFolderFilterValidatorFactory::getStorageChangesFolderFilterValidator()
63 static StorageChangesFolderFilterValidatorPtr theInstance =
64 StorageChangesFolderFilterValidatorPtr(new StorageChangesFolderFilterValidator(properties, matchFlag, Api::Tizen::PrimitiveType_Int));
71 } //naspace WrtPlugins