gambas-source-code/main/lib/db/CResult.h
Benoît Minisini c9ca5ab982 [CONFIGURATION]
* NEW: Update copyright year to 2013.

[GB.FORM]
* NEW: ImageView is a new control that allows to view an image inside a 
  scrolled view, at different zoom levels.
* BUG: FileProperties now works correctly if 'gb.desktop' is not used.
* NEW: The FileProperties preview tab now uses an ImageView control and has
  a toolbar to zoom the preview.
* BUG: Add the 'linux' and 'gnu' icon in the stock icon list.


git-svn-id: svn://localhost/gambas/trunk@5770 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-08-03 15:38:01 +00:00

77 lines
1.8 KiB
C

/***************************************************************************
CResult.h
(c) 2000-2013 Benoît Minisini <gambas@users.sourceforge.net>
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, 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., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
***************************************************************************/
#ifndef __CRESULT_H
#define __CRESULT_H
#include "gambas.h"
#include "gb.db.h"
#include "deletemap.h"
#include "CDatabase.h"
#include "gb_barray.h"
#include "c_subcollection.h"
#ifndef __CRESULT_C
extern GB_DESC CResultDesc[];
extern GB_DESC CBlobDesc[];
extern GB_CLASS CLASS_Blob;
#else
#define THIS ((CRESULT *)_object)
#define BLOB ((CBLOB *)_object)
#endif
enum
{
RESULT_FIND = 0,
RESULT_EDIT = 1,
RESULT_CREATE = 2,
RESULT_DELETE = 3
};
typedef
struct {
GB_BASE ob;
DB_DRIVER *driver;
CCONNECTION *conn;
DB_RESULT handle;
GB_VARIANT_VALUE *buffer;
BARRAY changed;
char *edit;
DB_INFO info;
int pos;
int count;
int field;
CSUBCOLLECTION *fields;
DELETE_MAP *dmap;
unsigned available : 1;
unsigned mode : 2;
}
CRESULT;
#define CBLOB DB_BLOB
CRESULT *DB_MakeResult(CCONNECTION *db, int mode, char *table, char *query);
#endif