コード例 #1
0
/*!
    Constructor
*/
CntCollectionListModel::CntCollectionListModel(CntAbstractEngine* aEngine, QObject *parent)
    : QAbstractListModel(parent)
{
    CNT_ENTRY
    
    d = new CntCollectionListModelData( aEngine->extensionManager() );
    d->mContactManager = &aEngine->contactManager( SYMBIAN_BACKEND );
    d->mThumbnailManager = &aEngine->thumbnailManager();
    
    XQSettingsKey nameOrderKey(XQSettingsKey::TargetCentralRepository,
            KCRCntSettings.iUid,
            KCntNameOrdering);
    int order = mSettings.readItemValue(nameOrderKey, XQSettingsManager::TypeInt).toInt();
    QString unnamed = hbTrId("txt_phob_dblist_unnamed");
    QString noFavs = hbTrId("txt_phob_dblist_favorites_val_no_favorites_selecte");
    QString noMembers = hbTrId("txt_phob_dblist_val_no_members_selected");
    mThread = new CntCollectionListModelWorker(unnamed, noFavs, noMembers, order);
    
    qRegisterMetaType<QList<QContactLocalId> >();
    
    connect(mThread, SIGNAL(fetchDone(int, const QString&, const QList<QContactLocalId>&)), this, 
            SLOT(informationUpdated(int, const QString&, const QList<QContactLocalId>&)));
    connect(d->mThumbnailManager, SIGNAL(thumbnailReady(QPixmap, void *, int, int)),
             this, SLOT(onIconReady(QPixmap, void *, int, int)));
    
    doConstruct();
    
    CNT_EXIT
}
コード例 #2
0
	/**
	* Constructor that receives a connected channel (to the receiver),
	* the DlogGroup agreed upon between them and the encryption object.
	* The committer needs to be instantiated with the same DlogGroup,
	* otherwise nothing will work properly.
	*/
	CmtElGamalReceiverCore(const shared_ptr<CommParty> & channel, const shared_ptr<DlogGroup> & dlog, const shared_ptr<ElGamalEnc> & elGamal) {
		doConstruct(channel, dlog, elGamal);
	}
コード例 #3
0
ファイル: ZeroKnowledge.hpp プロジェクト: Perseus14/scapi
	/**
	* Constructor that gets the channel, dlog, statistical parameter and random and uses them to create the ZK provers.
	* @param channel
	* @param dlog
	* @param t statistical parameter
	* @param random
	*/
	CmtPedersenWithProofsReceiver(shared_ptr<ChannelServer> channel,
		shared_ptr<DlogGroup> dlog, int t, std::mt19937 random) :
		CmtPedersenReceiver(channel, dlog, random) {
		doConstruct(t);
	};
コード例 #4
0
ファイル: ZeroKnowledge.hpp プロジェクト: Perseus14/scapi
	/**
	* Default constructor that gets the channel and creates the ZK verifiers with default Dlog group.
	* @param channel
	*/
	CmtPedersenWithProofsReceiver(shared_ptr<ChannelServer> channel, int t) : CmtPedersenReceiver(channel) {
		doConstruct(t);
	};
コード例 #5
0
ファイル: ZeroKnowledge.hpp プロジェクト: Perseus14/scapi
	/**
	* Default constructor that gets the channel and creates the ZK provers with default Dlog group.
	* @param channel
	*/
	CmtPedersenWithProofsCommitter(shared_ptr<ChannelServer> channel, int statisticalParamater) :
		CmtPedersenCommitter(channel) {
		doConstruct(statisticalParamater);
	};
コード例 #6
0
	/**
	* Constructor that gets channel to use in the protocol execution and chooses default committer.
	*/
	CmtEquivocalCommitter(const shared_ptr<CommParty> & channel, int t, const shared_ptr<PrgFromOpenSSLAES> & random = get_seeded_prg()) {
		doConstruct(channel, make_shared<CmtPedersenWithProofsCommitter>(channel, t, random));
	}
コード例 #7
0
	/**
	* Constructor that gets committer to use in the protocol execution.
	* @param committer instance of committer that has proofs.
	*/
	CmtEquivocalCommitter(const shared_ptr<CommParty> & channel, const shared_ptr<CmtWithProofsCommitter> & committer) { doConstruct(channel, committer); }