Ejemplo n.º 1
0
void CGUIWindowJukeboxSongs::OnScan(CFileItemPtr pItem) {
  CStdString strPath;
  if (!pItem)
    strPath = m_vecItems->GetPath();
  else if (pItem->m_bIsFolder)
    strPath = pItem->GetPath();
  else { // TODO: MUSICDB - should we allow scanning a single item into the database?
    //       This will require changes to the info scanner, which assumes we're running on a folder
    strPath = m_vecItems->GetPath();
  }
  DoScan(strPath);
}
Ejemplo n.º 2
0
void CGUIWindowMusicSongs::OnScan(int iItem)
{
  CStdString strPath;
  if (iItem < 0 || iItem >= m_vecItems->Size())
    strPath = m_vecItems->GetPath();
  else if (m_vecItems->Get(iItem)->m_bIsFolder)
    strPath = m_vecItems->Get(iItem)->GetPath();
  else
  { // TODO: MUSICDB - should we allow scanning a single item into the database?
    //       This will require changes to the info scanner, which assumes we're running on a folder
    strPath = m_vecItems->GetPath();
  }
  DoScan(strPath);
}
Ejemplo n.º 3
0
//---------------------------------------------------------------------------
void __fastcall TfrmProximityForm::FormShow(TObject *Sender)
{
	LINK_LOSS_SERVICE = StringToGUID("{00001803-0000-1000-8000-00805F9B34FB}");
	IMMEDIATE_ALERT_SERVICE = StringToGUID("{00001802-0000-1000-8000-00805F9B34FB}");
	TX_POWER_SERVICE = StringToGUID("{00001804-0000-1000-8000-00805F9B34FB}");
	ALERT_LEVEL_CHARACTERISTIC = StringToGUID("{00002A06-0000-1000-8000-00805F9B34FB}");
	TX_POWER_LEVEL_CHARACTERISTIC = StringToGUID("{00002A07-0000-1000-8000-00805F9B34FB}");

	FBLEManager = TBluetoothLEManager::Current;
	FBLEManager->OnDiscoveryEnd = DoDiscoveryEndEvent;
	FCurrentPosition = poUnknown;
	ProximityDeviceName = CProximityDeviceName;
	DoScan();
}
Ejemplo n.º 4
0
// Scan homosites and windows
void RefSeq::ScanHomoAndMicrosate(std::ifstream &fin) {
    _seq.resize(param.max_dbseq_size);
    total_num = sum_length = 0;
    unsigned int index = 0;
    _count = 0; 
    while (LoadNextSeq(fin)) {
        // filtering little reference sequences
        if (_length < 20 ) continue;
        RefTitle r;
        r._name =_name;
        r._size = _length;
        title.push_back(r);
        // scan window and homopolymer site
        DoScan(_length, _name, index);
        std::cout << "scanning chomosome "
                  << _name << " done. "
                  << Cal_AllTime() << " secs passed" << std::endl;
        index++;
        total_num++;
        sum_length += _length;
    }
    _seq.clear();
}
Ejemplo n.º 5
0
void __fastcall TfrmProximityForm::OnDeviceDisconnect(TObject *Sender)
{
  FBLEDevice = NULL;
  EnableRSSIMonitorize(False);
  DoScan(); //Restore the connection
}
Ejemplo n.º 6
0
void __fastcall TfrmProximityForm::btnScanClick(TObject *Sender)
{
  EnableRSSIMonitorize(False);
  DoScan();
}
Ejemplo n.º 7
0
//---------------------------------------------------------------------------
void __fastcall TfrmHeartMonitor::btnScanClick(TObject *Sender) {
	DoScan();
}
Ejemplo n.º 8
0
void __fastcall TfrmProximityForm::btnScanClick(TObject *Sender)
{
  btnConnect->Enabled = False;
  DoScan();
}