--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/homescreensrv_plat/contentstorage_api/inc/caquery.h Wed Oct 06 16:00:22 2010 +0300
@@ -0,0 +1,81 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: caquery.h
+ *
+ */
+
+#ifndef CAQUERY_H
+#define CAQUERY_H
+
+#include <QStringList>
+#include "caclient_global.h"
+#include "cadefs.h"
+
+class CaQueryPrivate;
+
+class CACLIENT_EXPORT CaQuery
+{
+
+public:
+
+ CaQuery();
+ CaQuery(const CaQuery &query);
+ CaQuery &operator=(const CaQuery &query);
+ ~CaQuery();
+
+ void setEntryRoles(EntryRoles entryRoles);
+ EntryRoles entryRoles() const;
+
+ void setParentId(int id);
+ int parentId() const;
+
+ void setChildId(int id);
+ int childId() const;
+
+ void setEntryTypeNames(const QStringList &entryTypeNames);
+ QStringList entryTypeNames() const;
+
+ void addEntryTypeName(const QString &entryTypeName);
+
+ void setFlagsOn(const EntryFlags &onFlags);
+ EntryFlags flagsOn() const;
+ void setFlagsOff(const EntryFlags &offFlags);
+ EntryFlags flagsOff() const;
+
+ void setSort(SortAttribute sortAttribute,
+ Qt::SortOrder sortOrder = Qt::AscendingOrder);
+ void getSort(SortAttribute& sortAttribute,
+ Qt::SortOrder& sortOrder) const;
+
+ unsigned int count() const;
+ void setCount(unsigned int count);
+
+ QMap<QString, QString> attributes() const;
+ QString attribute(const QString &name) const;
+ void setAttribute(const QString &name, const QString &value);
+ void removeAttribute(const QString &name);
+
+ void clear();
+
+private:
+
+ /**
+ * Pointer to a private implementation.
+ */
+ CaQueryPrivate * const m_d;
+ friend class CaQueryPrivate;
+
+};
+
+#endif // CAQUERY_H