DumontEXE 0.0.1
cmcActiveViewInfo.cpp
00001 /* ***************************************************************************
00002 **
00003 ** Copyright (C) 2007 Lorimark Solutions, LLC. All rights reserved.
00004 **
00005 ** This file is part of the DumontEXE Scripting Extension Kit
00006 **
00007 ** This file may be used under the terms of the GNU General Public
00008 ** License version 2.0 as published by the Free Software Foundation
00009 ** and appearing in the file LICENSE.GPL included in the packaging of
00010 ** this file.  Please review the following information to ensure GNU
00011 ** General Public Licensing requirements will be met:
00012 ** http://dumont.showoff-db.org/opensource.html
00013 **
00014 ** If you are unsure which license is appropriate for your use, please
00015 ** review the following information:
00016 ** http://dumont.showoff-db.org/licensing.html 
00017 ** or contact the sales department at sales@lorimarksolutions.com.
00018 **
00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00021 **
00022 ** author: Mark Petryk ~ Lorimark Solutions, LLC
00023 ** **************************************************************************/
00024 
00025 #include "cmcActiveViewInfo.h"
00026 #include "cmcDatabase.h"
00027 #include "cmcConversation.h"
00028 
00029 namespace cmcDatabaseApi {
00030 
00031 cmcActiveViewInfo::cmcActiveViewInfo( const cmcActiveViewInfo & copy )
00032 : cmcObject()
00033 {
00034 }
00035 
00036 
00037 cmcActiveViewInfo::cmcActiveViewInfo
00038 (
00039   cmcApplication * application,
00040   cmcObject * parent
00041 )
00042 : cmcObject( "ActiveViewInfo", application, parent )
00043 {
00044 }
00045 
00046 cmcActiveViewInfo::~cmcActiveViewInfo()
00047 {
00048 }
00049 
00050 void cmcActiveViewInfo::query(void)
00051 {
00052   m_viewInfo = "";
00053   m_infoList.clear();
00054   string();
00055 }
00056 
00057 QString cmcActiveViewInfo::string(void)
00058 {
00059   if( m_viewInfo == "" ) 
00060       m_viewInfo = db()-> cv()-> getActiveViewInfo();
00061   return( m_viewInfo );
00062 }  
00063 
00064 QStringList cmcActiveViewInfo::infoList(void)
00065 {
00066   if( m_infoList.count() == 0 )
00067       m_infoList = string().split(vbCrLf);
00068   return( m_infoList );
00069 }  
00070 
00071 QString cmcActiveViewInfo::viewName(void)
00072 {
00073   QString retVal;
00074   if( infoList().count() > 0 )
00075     retVal = infoList()[0];
00076   return( retVal );
00077 }
00078 
00079 QString cmcActiveViewInfo::viewType(void)
00080 {
00081   QString retVal;
00082   if( infoList().count() > 1 )
00083     retVal = infoList()[1];
00084   return( retVal );
00085 }
00086 
00087 QString cmcActiveViewInfo::categoryName(void)
00088 {
00089   QString retVal;
00090   if( infoList().count() > 2 )
00091     retVal = infoList()[2];
00092   return( retVal );
00093 }
00094 
00095 QString cmcActiveViewInfo::itemName(void)
00096 {
00097   QString retVal;
00098   if( infoList().count() > 3 )
00099     retVal = infoList()[3];
00100   return( retVal );
00101 }
00102 
00103 QString cmcActiveViewInfo::fieldName(void)
00104 {
00105   QString retVal;
00106   if( infoList().count() > 4 )
00107     retVal = infoList()[4];
00108   return( retVal );
00109 }
00110 
00111 
00112 
00113 } // endnamespace cmcDatabaseApi
00114 
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties




~ ~ ~ ~ ~ ~
Source Code without Comments is like a Cranberry Garland
without the berries. Comment your Code!
 
Commence Database User Support Group Forum
http://newsgroup.showoff-db.org/
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC
mark@lorimarksolutions.com