예제 #1
0
EXPORT_C void CLogEvent::CopyL(const CLogEvent& aEvent)
/** Makes a copy of the specified log event.

@param aEvent The log event to be copied. */
	{
	// Set data first as this is the only function that can leave
	// If this function fails nothing will be changed
	SetDataL(aEvent.Data());

	SetId(aEvent.Id());
	SetEventType(aEvent.EventType());
	SetTime(aEvent.Time());
	SetDurationType(aEvent.DurationType());
	SetDuration(aEvent.Duration());
	SetContact(aEvent.Contact());
	SetLink(aEvent.Link());
	SetDescription(aEvent.Description());
	SetRemoteParty(aEvent.RemoteParty());
	SetDirection(aEvent.Direction());
	SetStatus(aEvent.Status());
	SetSubject(aEvent.Subject());
	SetNumber(aEvent.Number());

	ClearFlags(KLogFlagsMask);
	SetFlags(aEvent.Flags());
#ifdef SYMBIAN_ENABLE_EVENTLOGGER_DUALSIM
	SetSimId(aEvent.SimId());
#endif
	}
예제 #2
0
ChainPoint::ChainPoint(QGraphicsObject* parent) : MainElement(parent)
{
    nameElement = "";
    typeElement = TYPE_CHAIN_POINT;

     nContactsLeft=1;
     nContactsRight=1;
     nContactsUp=1;
     nContactsDown=1;

     nContacts = nContactsDown + nContactsUp + nContactsLeft + nContactsRight;

     sizeX=1;
     sizeY=1;

     SetContact();
}
예제 #3
0
void Servo::run()
{
	if(mode == Servo::JOG){

		//ジョグモードの場合は単発で目的位置へ移動
		CPhidgetAdvancedServo_setPosition (*servo, index, position);

	}else if(mode == Servo::PREDEFINED){

		//プリディファインドモードの場合は制御ベクトルに従ってそれぞれ移動
		if(to == 0){
			SetReady();
		}else if(to == 1){
			SetContact();
		}else if(to == 2){
			SetHome();
		}

	}

	//// エンゲージ

	/*
	if(mode == Servo::JOG){
		std::cout << "[ サーボモーター制御スレッド ] モータID : " << index << " > エンゲージ(ジョグ)" << std::endl;
		Engage(true);
	}else if(mode == Servo::KNOCK){
		std::cout << "[ サーボモーター制御スレッド ] モータID : " << index << " > エンゲージ(電磁弁)" << std::endl;
		CPhidgetAdvancedServo_setPosition (*servo, index, knockPosition);
	}
	*/

	//// ディスエンゲージ動作は行わない

	//電磁弁的動作処理時間(0.5秒)
	//Sleep(500);
	//
	//ディスエンゲージ
	//std::cout << "ディスエンゲージ" << std::endl;
	//CPhidgetAdvancedServo_setEngaged(*servo, index, 0);
}
예제 #4
0
파일: CSend.cpp 프로젝트: Seldom/miranda-ng
//---------------------------------------------------------------------------
CSend::CSend(HWND /*Owner*/, MCONTACT hContact, bool bAsync, bool bSilent) :
m_bDeleteAfterSend(false),
m_bAsync(bAsync),
m_bSilent(bSilent),
m_pszFile(NULL),
m_pszFileDesc(NULL),
m_URL(NULL),
m_URLthumb(NULL),
m_pszSendTyp(NULL),
m_pszProto(NULL),
//	m_hContact(hContact), // initialized below
m_EnableItem(0),
m_ChatRoom(0),
//	m_PFflag(0),
m_cbEventMsg(0),
m_szEventMsg(NULL),
m_hSend(0),
m_hOnSend(0),
m_ErrorMsg(NULL),
m_ErrorTitle(NULL)
{
	SetContact(hContact);
}
예제 #5
0
ChainPoint::ChainPoint(int idElement, int posX, int posY, bool isMirrorGorizontal, bool isMirrorVertical, int sizeX, int sizeY, int nContactsLeft,int nContactsDown,int nContactsRight,int nContactsUp, QString name, QGraphicsObject* parent):
     MainElement( idElement,  posX,  posY,  isMirrorGorizontal,  isMirrorVertical,  sizeX,  sizeY,  nContactsLeft, nContactsDown, nContactsRight, nContactsUp,  name, parent)
{
    typeElement = TYPE_CHAIN_POINT;
        SetContact();
}