[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/libs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-06-05 19:32:16
Message-ID: 1212694336.235649.11208.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 817331 by aseigo:

fix package installation. this method was removed it the API review, but it is actually required.
BUG:163290


 M  +6 -0      packagestructure.cpp  
 M  +6 -0      packagestructure.h  


--- trunk/KDE/kdebase/workspace/libs/plasma/packagestructure.cpp #817330:817331
@@ -286,6 +286,7 @@
 void PackageStructure::setPath(const QString &path)
 {
     d->path = path;
+    pathChanged();
 }
 
 QString PackageStructure::path() const
@@ -293,6 +294,11 @@
     return d->path;
 }
 
+void PackageStructure::pathChanged()
+{
+    // default impl does nothing, this is a hook for subclasses.
+}
+
 void PackageStructure::read(const KConfigBase *config)
 {
     d->contents.clear();
--- trunk/KDE/kdebase/workspace/libs/plasma/packagestructure.h #817330:817331
@@ -249,6 +249,12 @@
      */
     void setContentsPrefix(const QString &prefix);
 
+    /**
+     * Called whenever the path changes so that subclasses may take
+     * package specific actions.
+     */
+    virtual void pathChanged();
+
 private:
     class Private;
      Private * const d;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic