Skip to content
Snippets Groups Projects
Commit bf6b68be authored by yanmorin's avatar yanmorin
Browse files

Lists tone
move rings to ringtones
parent dcac44ee
No related branches found
No related tags found
No related merge requests found
SUBDIRS = utilspp stund src rings SUBDIRS = utilspp stund src ringtones
...@@ -201,5 +201,5 @@ utilspp/Makefile \ ...@@ -201,5 +201,5 @@ utilspp/Makefile \
utilspp/functor/Makefile \ utilspp/functor/Makefile \
utilspp/singleton/Makefile \ utilspp/singleton/Makefile \
stund/Makefile \ stund/Makefile \
rings/Makefile \ ringtones/Makefile \
) )
...@@ -8,7 +8,7 @@ Name: %name ...@@ -8,7 +8,7 @@ Name: %name
Summary: An other VoIP client Summary: An other VoIP client
Version: %version Version: %version
Release: %release Release: %release
Copyright: GPL License: GPL
Group: Networking/Utilities Group: Networking/Utilities
URL: http://www.sflphone.org URL: http://www.sflphone.org
Packager: Cyrille Béraud <cyrille.beraud@savoirfairelinux.com> Packager: Cyrille Béraud <cyrille.beraud@savoirfairelinux.com>
...@@ -33,8 +33,6 @@ rm -rf $RPM_BUILD_ROOT ...@@ -33,8 +33,6 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%{prefix}/bin/sflphone %{prefix}/bin/sflphone
%dir %{prefix}/share/sflphone/skins %dir %{prefix}/share/sflphone/ringtones
%{prefix}/share/sflphone/skins/* %{prefix}/share/sflphone/ringtones/*
%dir %{prefix}/share/sflphone/pixmaps
%{prefix}/share/sflphone/pixmaps/*
...@@ -41,19 +41,19 @@ typedef short int16; ...@@ -41,19 +41,19 @@ typedef short int16;
#define PROGNAME "sflphone" #define PROGNAME "sflphone"
#define SKINDIR "skins" //#define SKINDIR "skins"
#define PIXDIR "icons" //#define PIXDIR "icons"
#define RINGDIR "rings" #define RINGDIR "ringtones"
#define CODECDIR "codecs" #define CODECDIR "codecs"
#define SFLPHONE_LOGO "logo_ico.png" //#define SFLPHONE_LOGO "logo_ico.png"
#define TRAY_ICON "tray-icon.png" //#define TRAY_ICON "tray-icon.png"
#define PIXMAP_SIGNALISATIONS "signalisations.png" //#define PIXMAP_SIGNALISATIONS "signalisations.png"
#define PIXMAP_AUDIO "audio.png" //#define PIXMAP_AUDIO "audio.png"
#define PIXMAP_VIDEO "video.png" //#define PIXMAP_VIDEO "video.png"
#define PIXMAP_NETWORK "network.png" //#define PIXMAP_NETWORK "network.png"
#define PIXMAP_PREFERENCES "preferences.png" //#define PIXMAP_PREFERENCES "preferences.png"
#define PIXMAP_ABOUT "about.png" //#define PIXMAP_ABOUT "about.png"
#define MONO 1 #define MONO 1
#define CHANNELS 2 #define CHANNELS 2
......
...@@ -115,9 +115,9 @@ GUIServerImpl::getEvents(const std::string& sequenceId) ...@@ -115,9 +115,9 @@ GUIServerImpl::getEvents(const std::string& sequenceId)
return true; return true;
} }
bool bool
GUIServerImpl::sendGetEventsEnd() GUIServerImpl::sendGetEventsEnd(const std::string& sequenceId)
{ {
_requestManager.sendResponse(ResponseMessage("202", _getEventsSequenceId, _requestManager.sendResponse(ResponseMessage("202", sequenceId,
"getcallstatus request stopped me")); "getcallstatus request stopped me"));
return true; return true;
} }
......
...@@ -64,7 +64,7 @@ arg); ...@@ -64,7 +64,7 @@ arg);
TokenList arg); TokenList arg);
bool getEvents(const std::string& sequenceId); bool getEvents(const std::string& sequenceId);
bool sendGetEventsEnd(); bool sendGetEventsEnd(const std::string& sequenceId);
bool outgoingCall (const std::string& seq, bool outgoingCall (const std::string& seq,
const std::string& callid, const std::string& callid,
......
...@@ -51,7 +51,7 @@ RequestZeroconfEvent::execute() ...@@ -51,7 +51,7 @@ RequestZeroconfEvent::execute()
ResponseMessage ResponseMessage
RequestCallStatus::execute() RequestCallStatus::execute()
{ {
GUIServer::instance().sendGetEventsEnd(); GUIServer::instance().sendGetEventsEnd(_sequenceId);
TokenList tk; TokenList tk;
tk.push_back("OK"); tk.push_back("OK");
std::string code = "205"; std::string code = "205";
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
//#include <arpa/inet.h> //#include <arpa/inet.h>
#include <cc++/thread.h> #include <cc++/thread.h>
#include <cc++/file.h>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
...@@ -1489,8 +1490,24 @@ ManagerImpl::getConfigList(const std::string& sequenceId, const std::string& nam ...@@ -1489,8 +1490,24 @@ ManagerImpl::getConfigList(const std::string& sequenceId, const std::string& nam
iter++; iter++;
} }
returnValue = true; returnValue = true;
} else if (name=="") { } else if (name=="ringtones") {
std::string path = std::string(PROGSHAREDIR) + "/" + RINGDIR;
try {
ost::Dir dir(path.c_str());
const char *cFileName = NULL;
std::string fileName;
std::string filePathName;
while ( (cFileName=dir++) != NULL ) {
fileName = cFileName;
filePathName = path + "/" + cFileName;
if (fileName.length() && fileName[0]!='.' && !ost::isDir(fileName.c_str())) {
_debug("Filename: %s\n", fileName.c_str());
}
}
returnValue = true; returnValue = true;
} catch (...) {
// error to open file dir
}
} else if (name=="") { } else if (name=="") {
returnValue = true; returnValue = true;
} else if (name=="") { } else if (name=="") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment