public void AppendPostData(Object formData, String name, String value)
        {
            LuaObjectStore los = (LuaObjectStore)formData;
            Dictionary <String, Object> partList = (Dictionary <String, Object>)los.obj;

            partList.Add("nuname", name);
        }
        public LuaObjectStore Insert(LuaObjectStore conn, String str)
        {
            LuaObjectStore los = new LuaObjectStore();

            los.obj = db.Query(str, true);
            return(los);
        }
        public LuaObjectStore Query(LuaObjectStore conn, String str)
        {
            LuaObjectStore los = new LuaObjectStore();

            los.obj = db.Query(str, false);
            return(los);
        }
        public LuaObjectStore StartForm()
        {
            LuaObjectStore los = new LuaObjectStore();
            Dictionary <String, Object> partList = new Dictionary <String, Object>();

            los.obj = partList;
            return(los);
        }
        public void StartAsyncLoadForm(String url, Object formData, String tag)
        {
            LuaObjectStore los = (LuaObjectStore)formData;
            Dictionary <String, Object> partList = (Dictionary <String, Object>)los.obj;

            httpClient = LuaEngine.Instance.GetHttpClient(this.tag, url);
            PostSubmitter ps = new PostSubmitter(httpClient, onComplete, onFail);

            ps.Submit(contentType);
        }
        public void AppendFileData(Object formData, String name, Object file)
        {
            LuaObjectStore los = (LuaObjectStore)formData;
            Dictionary <String, Object> partList = (Dictionary <String, Object>)los.obj;

            /*ByteArrayOutputStream bos = new ByteArrayOutputStream();
             * file.compress(CompressFormat.JPEG, 75, bos);
             * byte[] data = bos.toByteArray();*/
            byte[] data = (byte[])file;
            partList.Add("image" + DateTime.Now.Ticks + ".jpg", data);
        }
        public void Finalize(LuaObjectStore stmt)
        {
            SQLiteDataReader c = (SQLiteDataReader)stmt.obj;

            c.Close();
        }
 public Int64 GetLong(LuaObjectStore stmt, Int32 column)
 {
     return(db.GetLong((SQLiteDataReader)stmt.obj, column));
 }
 public Double GetDouble(LuaObjectStore stmt, Int32 column)
 {
     return(db.GetDouble((SQLiteDataReader)stmt.obj, column));
 }
 public Single GetFloat(LuaObjectStore stmt, Int32 column)
 {
     return((Single)db.GetDouble((SQLiteDataReader)stmt.obj, column));
 }
 public void Close(LuaObjectStore conn)
 {
     db.Close();
 }