QgsBookmarkItem Class Reference

#include <qgsbookmarkitem.h>

Collaboration diagram for QgsBookmarkItem:

Collaboration graph
[legend]
List of all members.

Detailed Description

A spatial bookmark record that is stored in a sqlite3 database.

Definition at line 30 of file qgsbookmarkitem.h.

Public Member Functions

 QgsBookmarkItem (QString name, QString projectTitle, QgsRect viewExtent, int srid, QString databasePath)
 Constructs a bookmark item.
 ~QgsBookmarkItem ()
 Default destructor.
void store ()
 Store the bookmark in the database.

Private Attributes

QString mName
 Name of the bookmark.
QString mProjectTitle
 Project that this bookmark was created from.
QgsRect mViewExtent
 Extent of the view for the bookmark.
int mSrid
 SRID of the canvas coordinate system when the bookmark was created.
QString mUserDbPath
 Full path to the user database.


Constructor & Destructor Documentation

QgsBookmarkItem::QgsBookmarkItem ( QString  name,
QString  projectTitle,
QgsRect  viewExtent,
int  srid,
QString  databasePath 
)

Constructs a bookmark item.

Definition at line 28 of file qgsbookmarkitem.cpp.

QgsBookmarkItem::~QgsBookmarkItem (  ) 

Default destructor.

Definition at line 34 of file qgsbookmarkitem.cpp.


Member Function Documentation

void QgsBookmarkItem::store (  ) 

Store the bookmark in the database.

Definition at line 37 of file qgsbookmarkitem.cpp.

References mName, mProjectTitle, mSrid, mUserDbPath, mViewExtent, QgsDebugMsg, sqlite3_close, sqlite3_errmsg, sqlite3_finalize, sqlite3_open, sqlite3_prepare, sqlite3_step, SQLITE_DONE, SQLITE_OK, QgsRect::xMax(), QgsRect::xMin(), QgsRect::yMax(), and QgsRect::yMin().

Referenced by QgisApp::newBookmark().


Member Data Documentation

QString QgsBookmarkItem::mName [private]

Name of the bookmark.

Definition at line 42 of file qgsbookmarkitem.h.

Referenced by store().

QString QgsBookmarkItem::mProjectTitle [private]

Project that this bookmark was created from.

Definition at line 44 of file qgsbookmarkitem.h.

Referenced by store().

QgsRect QgsBookmarkItem::mViewExtent [private]

Extent of the view for the bookmark.

Definition at line 46 of file qgsbookmarkitem.h.

Referenced by store().

int QgsBookmarkItem::mSrid [private]

SRID of the canvas coordinate system when the bookmark was created.

Definition at line 48 of file qgsbookmarkitem.h.

Referenced by store().

QString QgsBookmarkItem::mUserDbPath [private]

Full path to the user database.

Definition at line 50 of file qgsbookmarkitem.h.

Referenced by store().


The documentation for this class was generated from the following files:
Generated on Tue Oct 28 16:51:54 2008 for Quantum GIS API Documentation by  doxygen 1.5.1