TFCweb  1.0.4 $Rev: 483 $
TFC Primavera 2012: Nucli d'un servidor web
TipusMIME.h
Veure la documentació d'aquest fitxer.
1 #if !defined(_TIPUS_MIME_H_)
2 #define _TIPUS_MIME_H_
3 
11 /*
12  * Copyright (c) 2012 Toni Corvera
13  *
14  * This file is part of TFCWeb.
15  *
16  * TFCWeb is free software: you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation, either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * TFCWeb is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with TFCWeb. If not, see <http://www.gnu.org/licenses/>.
28  */
29 
30 #include "portabilitat.h"
31 
32 #include <string>
33 #include <boost/filesystem.hpp>
34 
35 namespace tfc {
36 
41 namespace RegistreTipusMIME {
42 
49 // Apache i webfsd fan servir text/plain per defecte en comptes d'application/octect-stream
50 const std::string& per_extensio(const std::string& ext);
51 
57 void registra_extensio(const std::string & ext, const std::string & tipus);
58 
62 const std::string& tipus(const boost::filesystem::path & p);
63 
64 } // ns RegistreTipusMIME
65 
66 } // ns tfc
67 
68 #endif // _TIPUS_MIME_H_
69 
70 // vim:set ts=4 et ai: //