Update of /cvsroot/mahogany/M/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv11090/src/Python

Added Files:
        MimeType.cpp-swig MimeType.py-swig 
Log Message:
wrap MimeType for Python too

--- NEW FILE ---
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.19
 * 
 * This file is not intended to be easily readable and contains a number of 
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG 
 * interface file instead. 
 * ----------------------------------------------------------------------------- */

#define SWIGPYTHON
#define SWIG_NOINCLUDE

#ifdef __cplusplus
template<class T> class SwigValueWrapper {
    T *tt;
public:
    inline SwigValueWrapper() : tt(0) { }
    inline ~SwigValueWrapper() { if (tt) delete tt; } 
[...1291 lines suppressed...]
#endif
SWIGEXPORT(void) SWIG_init(void) {
    static PyObject *SWIG_globals = 0; 
    static int       typeinit = 0;
    PyObject *m, *d;
    int       i;
    if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
    m = Py_InitModule((char *) SWIG_name, SwigMethods);
    d = PyModule_GetDict(m);
    
    if (!typeinit) {
        for (i = 0; swig_types_initial[i]; i++) {
            swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
        }
        typeinit = 1;
    }
    SWIG_InstallConstants(d,swig_const_table);
    
}


--- NEW FILE ---
# This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _MimeType
def _swig_setattr(self,class_type,name,value):
    if (name == "this"):
        if isinstance(value, class_type):
            self.__dict__[name] = value.this
            if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
            del value.thisown
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    self.__dict__[name] = value

def _swig_getattr(self,class_type,name):
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


class MimeType(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, MimeType, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, MimeType, name)
    TEXT = _MimeType.MimeType_TEXT
    MULTIPART = _MimeType.MimeType_MULTIPART
    MESSAGE = _MimeType.MimeType_MESSAGE
    APPLICATION = _MimeType.MimeType_APPLICATION
    AUDIO = _MimeType.MimeType_AUDIO
    IMAGE = _MimeType.MimeType_IMAGE
    VIDEO = _MimeType.MimeType_VIDEO
    MODEL = _MimeType.MimeType_MODEL
    OTHER = _MimeType.MimeType_OTHER
    CUSTOM1 = _MimeType.MimeType_CUSTOM1
    CUSTOM2 = _MimeType.MimeType_CUSTOM2
    CUSTOM3 = _MimeType.MimeType_CUSTOM3
    CUSTOM4 = _MimeType.MimeType_CUSTOM4
    CUSTOM5 = _MimeType.MimeType_CUSTOM5
    CUSTOM6 = _MimeType.MimeType_CUSTOM6
    INVALID = _MimeType.MimeType_INVALID
    def __init__(self,*args):
        _swig_setattr(self, MimeType, 'this', apply(_MimeType.new_MimeType,args))
        _swig_setattr(self, MimeType, 'thisown', 1)
    def Assign(*args): return apply(_MimeType.MimeType_Assign,args)
    def IsOk(*args): return apply(_MimeType.MimeType_IsOk,args)
    def IsWildcard(*args): return apply(_MimeType.MimeType_IsWildcard,args)
    def IsText(*args): return apply(_MimeType.MimeType_IsText,args)
    def GetPrimary(*args): return apply(_MimeType.MimeType_GetPrimary,args)
    def GetType(*args): return apply(_MimeType.MimeType_GetType,args)
    def GetSubType(*args): return apply(_MimeType.MimeType_GetSubType,args)
    def GetFull(*args): return apply(_MimeType.MimeType_GetFull,args)
    def __ne__(*args): return apply(_MimeType.MimeType___ne__,args)
    def Matches(*args): return apply(_MimeType.MimeType_Matches,args)
    def __eq__(*args): return apply(_MimeType.MimeType___eq__,args)
    def __del__(self, destroy= _MimeType.delete_MimeType):
        try:
            if self.thisown: destroy(self)
        except: pass
    def __repr__(self):
        return "<C MimeType instance at %s>" % (self.this,)

class MimeTypePtr(MimeType):
    def __init__(self,this):
        _swig_setattr(self, MimeType, 'this', this)
        if not hasattr(self,"thisown"): _swig_setattr(self, MimeType, 'thisown', 0)
        _swig_setattr(self, MimeType,self.__class__,MimeType)
_MimeType.MimeType_swigregister(MimeTypePtr)





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to