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

List:       kde-commits
Subject:    branches/work/kdelibs-phonon/phonon/ifaces (silent)
From:       Matthias Kretz <kretz () kde ! org>
Date:       2006-01-17 22:33:55
Message-ID: 1137537235.712202.21820.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 499493 by mkretz:

SVN_SILENT: default implementation for remainingTime()


 M  +1 -1      bytestream.h  


--- branches/work/kdelibs-phonon/phonon/ifaces/bytestream.h #499492:499493
@@ -34,7 +34,7 @@
 			virtual ~ByteStream() {}
 
 			virtual long totalTime() const = 0;
-			virtual long remainingTime() const = 0;
+			virtual long remainingTime() const { return totalTime() - currentTime(); }
 			virtual long aboutToFinishTime() const = 0;
 			virtual long streamSize() const = 0;
 			virtual bool streamSeekable() const = 0;
[prev in list] [next in list] [prev in thread] [next in thread] 

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