00001 /*************************************************************************** 00002 musicman.h - description 00003 ------------------- 00004 begin : Tue May 27 21:25:35 BRT 2003 00005 copyright : (C) 2003 by Avi Alkalay 00006 email : avi@unix.sh 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 #ifndef __plugin_musicman_h 00018 #define __plugin_musicman_h 00019 00020 #include <konq_popupmenu.h> 00021 #include <kdirlister.h> 00022 00023 class KAction; 00024 class MusicIndexGenerator; 00025 class FilenameMiner; 00026 00041 class MusicMan : public KonqPopupMenuPlugin { 00042 Q_OBJECT 00043 public: 00044 MusicMan(KonqPopupMenu *, const char *name, const QStringList &list); 00045 virtual ~MusicMan(); 00046 KonqPopupMenu *popup; 00047 KDirLister lister; 00048 00049 public slots: 00050 void slotToUnderline(); 00051 void slotToSpace(); 00052 void slotID3FromFilename(); 00053 void slotFilenameFromID3(); 00055 void slotMassTag(); 00057 void slotRenameLatin1ToUTF8(); 00059 void slotIndex(); 00061 void slotNormalize(); 00063 void slotAboutToShow(); 00064 00065 00066 protected: 00067 void setupActions(); 00068 00069 private: 00070 KAction *actionToUnderline; 00071 KAction *actionToSpace; 00072 KAction *actionID3FromFilename; 00073 KAction *actionFilenameFromID3; 00074 KAction *actionIndex; 00075 KAction *actionDummy; 00076 KAction *actionNormalize; 00077 KAction *actionLatin1ToUTF8; 00079 MusicIndexGenerator * indexer; 00081 FilenameMiner *miner; 00083 QPopupMenu * menuMusicMan; 00085 void renameReplace(char from,char to); 00086 private slots: // Private slots 00088 void slotPlaceholder(); 00089 }; 00090 00091 #endif