-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcentrobilhete.cpp
More file actions
31 lines (20 loc) · 1.02 KB
/
centrobilhete.cpp
File metadata and controls
31 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "centrobilhete.h"
#include "tododto.h"
#include "bilheteformatar.h"
#include "control.h"
CentroBilhete::CentroBilhete( QObject* parent ) :
QObject( parent ) {}
QString CentroBilhete::centroBilheteFormatar( const QString& description, const QString& nome,
const QString& assinatura, const QString& data, const QString& turma, const QString& turno ) {
BilheteFormatar* bilhete = new BilheteFormatar();
QStringList retorno, cabecalho;
QString retornoCabecalho, retornoInformacoes;
retorno.append( bilhete->formatarBilheteInformacoes( nome, description, assinatura, turma, turno ) );
retorno.append( data );
QStringList retornoMetodo = bilhete->formatarBilhete( retorno );
retornoInformacoes = bilhete->formatarTamnhoBilhete( retornoMetodo );
this->retorno = retornoInformacoes;
return retornoInformacoes;
}
QString CentroBilhete::getRetorno() const { return retorno; }
void CentroBilhete::setRetorno( const QString& value ) { retorno = value; }