www.pudn.com > MP3CORD.rar > utility.h


/*____________________________________________________________________________ 
	 
	FreeAmp - The Free MP3 Player 
 
	Portions Copyright (C) 1998-1999 EMusic.com 
 
	This program is free software; you can redistribute it and/or modify 
	it under the terms of the GNU General Public License as published by 
	the Free Software Foundation; either version 2 of the License, or 
	(at your option) any later version. 
 
	This program is distributed in the hope that it will be useful, 
	but WITHOUT ANY WARRANTY; without even the implied warranty of 
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
	GNU General Public License for more details. 
 
	You should have received a copy of the GNU General Public License 
	along with this program; if not, write to the Free Software 
	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
	 
	$Id: utility.h,v 1.7 1999/11/16 00:50:50 elrod Exp $ 
____________________________________________________________________________*/ 
 
#ifndef INCLUDED_UTILITY_H 
#define INCLUDED_UTILITY_H 
 
#include  
#include  
 
using namespace std; 
 
#include "config.h" 
#include "errors.h" 
#include "preferences.h" 
 
void CreateDirectoryPath(const char* path); 
void ResolvePath(char** path); 
void RFC822GMTTimeString(struct tm* time, char buf[32]); 
char *strdup_new(const char *str); 
char *FreeampDir(Preferences *prefs); 
Error FilePathToURL(const char* path, char* url, uint32* length); 
Error URLToFilePath(const char* url, char* path, uint32* length); 
void ToUpper(char *s); 
void ToLower(char *s); 
 
#ifndef WIN32 
void LaunchBrowser(char* url); 
#endif 
 
#ifdef WIN32 
void FindMusicFiles(const char* rootPath,  
                    vector& urls,  
                    vector& queries);  
bool ResolveLink(string& path); 
#endif 
 
#endif /* INCLUDED_UTILITY_H */