File indexing completed on 2024-05-12 16:42:38
0001 /* 0002 SPDX-FileCopyrightText: 2000-2001 Michael Edwardes <mte@users.sourceforge.net> 0003 SPDX-FileCopyrightText: 2002-2017 Thomas Baumgart <tbaumgart@kde.org> 0004 SPDX-FileCopyrightText: 2003 Kevin Tambascio <ktambascio@users.sourceforge.net> 0005 SPDX-FileCopyrightText: 2006 Ace Jones <acejones@users.sourceforge.net> 0006 SPDX-FileCopyrightText: 2017-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #ifndef MYMONEYPAYEE_P_H 0011 #define MYMONEYPAYEE_P_H 0012 0013 0014 // ---------------------------------------------------------------------------- 0015 // QT Includes 0016 0017 #include <QString> 0018 #include <QMap> 0019 #include <QHash> 0020 0021 // ---------------------------------------------------------------------------- 0022 // Project Includes 0023 0024 #include "mymoneyobject_p.h" 0025 0026 class MyMoneyPayeePrivate : public MyMoneyObjectPrivate 0027 { 0028 public: 0029 0030 MyMoneyPayeePrivate() : 0031 m_matchingEnabled(false), 0032 m_usingMatchKey(false), 0033 m_matchKeyIgnoreCase(true) 0034 { 0035 } 0036 0037 // Simple fields 0038 QString m_name; 0039 QString m_address; 0040 QString m_city; 0041 QString m_state; 0042 QString m_postcode; 0043 QString m_telephone; 0044 QString m_email; 0045 QString m_notes; 0046 0047 // Transaction matching fields 0048 bool m_matchingEnabled; //< Whether this payee should be matched at all 0049 bool m_usingMatchKey; //< If so, whether a m_matchKey list is used (true), or just m_name is used (false) 0050 bool m_matchKeyIgnoreCase; //< Whether to ignore the case of the match key or name 0051 0052 /** 0053 * Semicolon separated list of matching keys used when trying to find a suitable 0054 * payee for imported transactions. 0055 */ 0056 QString m_matchKey; 0057 0058 // Category (account) matching fields 0059 QString m_defaultAccountId; 0060 0061 /** 0062 * This member keeps a reference to an external database 0063 * (e.g. kaddressbook). It is the responsibility of the 0064 * application to format the reference string 0065 * (e.g. encoding the name of the external database into the 0066 * reference string). 0067 * If no external database is available it should be kept 0068 * empty by the application. 0069 */ 0070 QString m_reference; 0071 0072 }; 0073 0074 #endif 0075 0076 // vim:cin:si:ai:et:ts=2:sw=2: