[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kabc
From: John Tapsell <john () geola ! co ! uk>
Date: 2004-12-13 16:57:36
Message-ID: 20041213165736.032441B8C3 () office ! kde ! org
[Download RAW message or body]
CVS commit by johnflux:
Add isEmpty() field to Sound class, as discussed on mailing list
M +6 -0 sound.cpp 1.6
M +7 -0 sound.h 1.7
--- kdelibs/kabc/sound.h #1.6:1.7
@@ -102,4 +102,11 @@ public:
/**
+ * Test if this sound file has been set.
+ * Just does: !isIntern() && url.isEmpty()
+ * @since 3.4
+ */
+ bool isEmpty() const;
+
+ /**
* Sets the raw data of the sound. When using this function,
* isIntern() will return 'true' until you use setUrl().
--- kdelibs/kabc/sound.cpp #1.5:1.6
@@ -81,4 +81,10 @@ bool Sound::isIntern() const
}
+bool Sound::isEmpty() const
+{
+ return (!mIntern) && mUrl.isEmpty();
+
+}
+
QString Sound::url() const
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic