-- EFL LuaJIT bindings: ecore_con_url.eo (class Ecore.Con.Url)
-- For use with Elua; automatically generated, do not modify

local cutil = require("cutil")
local util  = require("util")
local ffi   = require("ffi")
local eo    = require("eo")

local M, __lib = ...

local __class
local __body

local init = function()
    __class = __lib.ecore_con_url_class_get()
    eo.class_register("Ecore_Con_Url", "Eo_Base", __body, __class)
end

cutil.init_module(init, function() end)

ffi.cdef [[
    const Eo_Class *ecore_con_url_class_get(void);
    Eina_Bool ecore_con_url_obj_url_set(const char * url);
    const char * ecore_con_url_obj_url_get(void);
]]

local __M = util.get_namespace(M, { "con" })
__body = {
    __eo_ctor = function(self, __func)
        if __func then __func() end
    end,

    url_set = function(self, url)
        eo.__do_start(self, __class)
        local v = __lib.ecore_con_url_obj_url_set(url)
        eo.__do_end()
    end,

    url_get = function(self)
        eo.__do_start(self, __class)
        local v = __lib.ecore_con_url_obj_url_get()
        eo.__do_end()
        return ffi.string(v)
    end,

    __properties = {
        ["url"] = { 0, 1, true, true }
    }
}

__M.Url = function(parent, ...)
    return eo.__ctor_common(__class, parent, eo.class_get("Ecore_Con_Url").__eo_ctor,
                            1, ...)
end

return M
