cleanup indentation in AndroidManifest file

This commit is contained in:
Stephen Birarda 2014-11-18 13:38:37 -08:00
parent 86000799ac
commit 9f4e1c8a27
4 changed files with 31 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View file

@ -17,4 +17,30 @@ GVRInterface::GVRInterface(int argc, char* argv[]) :
QGuiApplication(argc, argv)
{
NodeList* nodeList = NodeList::createInstance(NodeType::Agent);
connect(&nodeList->getNodeSocket(), &QUdpSocket::readyRead, this, &GVRInterface::processDatagrams);
QTimer* domainServerTimer = new QTimer(this);
connect(domainServerTimer, &QTimer::timeout, nodeList, &NodeList::sendDomainServerCheckIn);
domainServerTimer->start(DOMAIN_SERVER_CHECK_IN_MSECS);
QTimer* silentNodeRemovalTimer = new QTimer(this);
connect(silentNodeRemovalTimer, &QTimer::timeout, nodeList, &NodeList::removeSilentNodes);
silentNodeRemovalTimer->start(NODE_SILENCE_THRESHOLD_MSECS);
}
void GVRInterface::processDatagrams() {
NodeList* nodeList = NodeList::getInstance();
HifiSockAddr senderSockAddr;
QByteArray incomingPacket;
while (nodeList->getNodeSocket().hasPendingDatagrams()) {
incomingPacket.resize(nodeList->getNodeSocket().pendingDatagramSize());
nodeList->getNodeSocket().readDatagram(incomingPacket.data(), incomingPacket.size(),
senderSockAddr.getAddressPointer(), senderSockAddr.getPortPointer());
qDebug() << "Processing a packet!";
nodeList->processNodeData(senderSockAddr, incomingPacket);
}
}

View file

@ -18,6 +18,8 @@ class GVRInterface : public QGuiApplication {
Q_OBJECT
public:
GVRInterface(int argc, char* argv[]);
private slots:
void processDatagrams();
};
#endif // hifi_GVRInterface_h

View file

@ -268,6 +268,7 @@ bool NodeList::processSTUNResponse(const QByteArray& packet) {
}
void NodeList::sendDomainServerCheckIn() {
qDebug() << "SEND DOMAIN SERVER CHECK IN";
if (_publicSockAddr.isNull() && !_hasCompletedInitialSTUNFailure) {
// we don't know our public socket and we need to send it to the domain server
// send a STUN request to figure it out
@ -276,6 +277,8 @@ void NodeList::sendDomainServerCheckIn() {
handleICEConnectionToDomainServer();
} else if (!_domainHandler.getIP().isNull()) {
qDebug() << "SENDING A CHECK IN TO" << _domainHandler.getIP().toString();
bool isUsingDTLS = false;
PacketType domainPacketType = !_domainHandler.isConnected()