File indexing completed on 2024-04-28 05:42:49
0001 /* 0002 SPDX-FileCopyrightText: 2002-2004 Otto Bruggeman <otto.bruggeman@home.nl> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "kompareinterface.h" 0008 0009 class KompareInterfacePrivate 0010 { 0011 public: 0012 KompareInterfacePrivate(); 0013 ~KompareInterfacePrivate(); 0014 KompareInterfacePrivate(const KompareInterfacePrivate&); 0015 KompareInterfacePrivate& operator=(const KompareInterfacePrivate&); 0016 0017 protected: 0018 // Add all variables for the KompareInterface class here and access them through the kip pointer 0019 }; 0020 0021 KompareInterfacePrivate::KompareInterfacePrivate() 0022 { 0023 } 0024 0025 KompareInterfacePrivate::~KompareInterfacePrivate() 0026 { 0027 } 0028 0029 KompareInterfacePrivate::KompareInterfacePrivate(const KompareInterfacePrivate& /*kip*/) 0030 { 0031 } 0032 0033 KompareInterfacePrivate& KompareInterfacePrivate::operator=(const KompareInterfacePrivate& /*kip*/) 0034 { 0035 return *this; 0036 } 0037 0038 KompareInterface::KompareInterface() 0039 { 0040 kip = new KompareInterfacePrivate(); 0041 } 0042 0043 KompareInterface::~KompareInterface() 0044 { 0045 delete kip; 0046 } 0047 0048 KompareInterface::KompareInterface(const KompareInterface& ki) 0049 { 0050 kip = new KompareInterfacePrivate(*(ki.kip)); 0051 } 0052 0053 KompareInterface& KompareInterface::operator=(const KompareInterface& ki) 0054 { 0055 kip = ki.kip; 0056 return *this; 0057 } 0058 0059 void KompareInterface::setEncoding(const QString& encoding) 0060 { 0061 m_encoding = encoding; 0062 } 0063