File indexing completed on 2025-01-05 03:53:53
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2007-04-09 0007 * Description : Collection location abstraction 0008 * 0009 * SPDX-FileCopyrightText: 2007-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #include "collectionlocation.h" 0016 0017 namespace Digikam 0018 { 0019 0020 CollectionLocation::CollectionLocation() 0021 : m_id (-1), 0022 m_status (LocationNull), 0023 m_type (VolumeHardWired), 0024 m_caseSensitivity(UnknownCaseSensitivity) 0025 { 0026 } 0027 0028 int CollectionLocation::id() const 0029 { 0030 return m_id; 0031 } 0032 0033 Qt::CaseSensitivity CollectionLocation::asQtCaseSensitivity() const 0034 { 0035 if (m_caseSensitivity == CaseInsensitive) 0036 { 0037 return Qt::CaseInsensitive; 0038 } 0039 0040 return Qt::CaseSensitive; 0041 } 0042 0043 CollectionLocation::CaseSensitivity CollectionLocation::caseSensitivity() const 0044 { 0045 return m_caseSensitivity; 0046 } 0047 0048 CollectionLocation::Status CollectionLocation::status() const 0049 { 0050 return m_status; 0051 } 0052 0053 CollectionLocation::Type CollectionLocation::type() const 0054 { 0055 return m_type; 0056 } 0057 0058 QString CollectionLocation::albumRootPath() const 0059 { 0060 return m_path; 0061 } 0062 0063 QString CollectionLocation::label() const 0064 { 0065 return m_label; 0066 } 0067 0068 } // namespace Digikam