Logo Search packages:      
Sourcecode: webissues version File versions  Download package

datarows.cpp

/**************************************************************************
* This file is part of the WebIssues program
* Copyright (C) 2006 Michał Męciński
* Copyright (C) 2007 WebIssues Team
*
* 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 of the License, or
* (at your option) any later version.
**************************************************************************/

#include "datarows.h"

using namespace WebIssues;

00016 ProjectRow::ProjectRow( int projectId, const QString& name ) :
    m_name( name )
{
    setKey( 0, projectId );
}

00022 ProjectRow::~ProjectRow()
{
}

00026 FolderRow::FolderRow( int folderId, int projectId, const QString& name, int typeId, int stamp ) :
    m_name( name ),
    m_typeId( typeId ),
    m_stamp( stamp )
{
    setKey( 0, folderId );
    setKey( 1, projectId );
}

00035 FolderRow::~FolderRow()
{
}

00039 UserRow::UserRow( int userId, const QString& login, const QString& name, Access access ) :
    m_login( login ),
    m_name( name ),
    m_access( access )
{
    setKey( 0, userId );
}

00047 UserRow::~UserRow()
{
}

00051 MemberRow::MemberRow( int userId, int projectId, Access access ) :
    m_access( access )
{
    setKey( 0, userId );
    setKey( 1, projectId );
}

00058 MemberRow::~MemberRow()
{
}

00062 TypeRow::TypeRow( int typeId, const QString& name ) :
    m_name( name )
{
    setKey( 0, typeId );
}

00068 TypeRow::~TypeRow()
{
}

00072 AttributeRow::AttributeRow( int attributeId, int typeId, const QString& name, const QString& definition ) :
    m_name( name ),
    m_definition( definition )
{
    setKey( 0, attributeId );
    setKey( 1, typeId );
}

00080 AttributeRow::~AttributeRow()
{
}

00084 IssueRow::IssueRow( int issueId, int folderId, const QString& name, int stamp, const QDateTime& createdDate,
        int createdUser, const QDateTime& modifiedDate, int modifiedUser ) :
    m_name( name ),
    m_stamp( stamp ),
    m_createdDate( createdDate ),
    m_createdUser( createdUser ),
    m_modifiedDate( modifiedDate ),
    m_modifiedUser( modifiedUser )
{
    setKey( 0, issueId );
    setKey( 1, folderId );
}

00097 IssueRow::~IssueRow()
{
}

00101 ValueRow::ValueRow( int attributeId, int issueId, const QString& value ) :
    m_value( value )
{
    setKey( 0, attributeId );
    setKey( 1, issueId );
}

00108 ValueRow::~ValueRow()
{
}

00112 CommentRow::CommentRow( int commentId, int issueId, const QDateTime& createdDate, int createdUser,
        const QString& text ) :
    m_createdDate( createdDate ),
    m_createdUser( createdUser ),
    m_text( text )
{
    setKey( 0, commentId );
    setKey( 1, issueId );
}

00122 CommentRow::~CommentRow()
{
}

00126 AttachmentRow::AttachmentRow( int attachmentId, int issueId, const QString& name, const QDateTime& createdDate,
        int createdUser, int size, const QString& description ) :
    m_name( name ),
    m_createdDate( createdDate ),
    m_createdUser( createdUser ),
    m_size( size ),
    m_description( description )
{
    setKey( 0, attachmentId );
    setKey( 1, issueId );
}

00138 AttachmentRow::~AttachmentRow()
{
}

00142 ChangeRow::ChangeRow( int changeId, int issueId, const QDateTime& modifiedDate, int modifiedUser,
        int attributeId, const QString& oldValue, const QString& newValue ) :
    m_modifiedDate( modifiedDate ),
    m_modifiedUser( modifiedUser ),
    m_attributeId( attributeId ),
    m_oldValue( oldValue ),
    m_newValue( newValue )
{
    setKey( 0, changeId );
    setKey( 1, issueId );
}

00154 ChangeRow::~ChangeRow()
{
}

Generated by  Doxygen 1.6.0   Back to index