]> git.sesse.net Git - vlc/commitdiff
skins2: rename command to better readability
authorErwan Tulou <erwan10@videolan.org>
Mon, 28 Jan 2013 11:38:45 +0000 (12:38 +0100)
committerErwan Tulou <erwan10@videolan.org>
Mon, 28 Jan 2013 14:18:43 +0000 (15:18 +0100)
modules/gui/skins2/commands/cmd_vars.cpp
modules/gui/skins2/commands/cmd_vars.hpp
modules/gui/skins2/src/vlcproc.cpp

index 31eaa27b17ab7a02c0789d2dea154389e3942bfd..423be4b77d2a9533de7ee32e4d0bb7d02f72eebd 100644 (file)
@@ -28,7 +28,7 @@
 #include "../vars/playtree.hpp"
 
 
-void CmdPlaytreeUpdate::execute()
+void CmdItemUpdate::execute()
 {
     if( !m_pItem )
         return;
@@ -43,10 +43,10 @@ void CmdPlaytreeUpdate::execute()
         VlcProc::instance( getIntf() )->getPlaytreeVar().onUpdateItem( id );
 }
 
-bool CmdPlaytreeUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const
+bool CmdItemUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const
 {
     // We don't use RTTI - Use C-style cast
-    CmdPlaytreeUpdate *pUpdateCommand = (CmdPlaytreeUpdate *)(pQueuedCommand);
+    CmdItemUpdate *pUpdateCommand = (CmdItemUpdate *)(pQueuedCommand);
     return m_pItem == pUpdateCommand->m_pItem;
 }
 
index 2f527362a506ffdcf52dd9b69d52b37fa9c6c8e5..a27e7aa5aa9edb61d607d32cf028489426b07194 100644 (file)
@@ -39,16 +39,16 @@ class EqualizerPreamp;
 class VarText;
 
 /// Command to notify the playtree of an item update
-class CmdPlaytreeUpdate: public CmdGeneric
+class CmdItemUpdate: public CmdGeneric
 {
 public:
-    CmdPlaytreeUpdate( intf_thread_t *pIntf, input_item_t* pItem ):
+    CmdItemUpdate( intf_thread_t *pIntf, input_item_t* pItem ):
         CmdGeneric( pIntf ), m_pItem( pItem )
     {
         if( pItem )
             vlc_gc_incref( pItem );
     }
-    virtual ~CmdPlaytreeUpdate()
+    virtual ~CmdItemUpdate()
     {
         if( m_pItem )
             vlc_gc_decref( m_pItem );
index 80b1395b2d62a1ebc8303a67f6baffc7a9c64cef..7127c625e3e649ed2a8c9bdbb323c79f05fcd7cf 100644 (file)
@@ -247,7 +247,7 @@ int VlcProc::onItemChange( vlc_object_t *pObj, const char *pVariable,
     input_item_t *p_item = static_cast<input_item_t*>(newval.p_address);
 
     // Create a playtree notify command
-    CmdPlaytreeUpdate *pCmdTree = new CmdPlaytreeUpdate( pThis->getIntf(),
+    CmdItemUpdate *pCmdTree = new CmdItemUpdate( pThis->getIntf(),
                                                          p_item );
 
     // Push the command in the asynchronous command queue