Change top-level namespace from 'Thread' to 'ot'. (#1664)

This commit is contained in:
Jonathan Hui
2017-04-27 22:29:05 -07:00
committed by GitHub
parent 8bf14cfbbd
commit 1eabda6a08
276 changed files with 659 additions and 660 deletions
+2 -2
View File
@@ -26,10 +26,10 @@
POSSIBILITY OF SUCH DAMAGE.
-->
<Application
x:Class="Thread.App"
x:Class="ot.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Thread"
xmlns:local="using:ot"
RequestedTheme="Dark">
</Application>
+1 -1
View File
@@ -29,7 +29,7 @@
#include "pch.h"
#include "MainPage.xaml.h"
using namespace Thread;
using namespace ot;
using namespace Platform;
using namespace Windows::ApplicationModel;
+1 -1
View File
@@ -30,7 +30,7 @@
#include "App.g.h"
namespace Thread
namespace ot
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
public ref class ClientArgs sealed
@@ -40,4 +40,4 @@ public:
property Platform::String^ ClientPort;
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -26,10 +26,10 @@
POSSIBILITY OF SUCH DAMAGE.
-->
<UserControl
x:Class="Thread.ClientControl"
x:Class="ot.ClientControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Thread"
xmlns:local="using:ot"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
+1 -1
View File
@@ -33,7 +33,7 @@
#include "Factory.h"
#include "TalkHelper.h"
using namespace Thread;
using namespace ot;
using namespace Concurrency;
using namespace Platform;
+2 -2
View File
@@ -35,7 +35,7 @@
#include "IMainPageUIElements.h"
#include "Protocol.h"
namespace Thread
namespace ot
{
[Windows::Foundation::Metadata::WebHostHidden]
@@ -63,4 +63,4 @@ private:
static std::atomic<int> _clientPort;
};
} // namespace Thread
} // namespace ot
@@ -30,7 +30,7 @@
#include <utility>
#include "DatagramClientContext.h"
using namespace Thread;
using namespace ot;
using namespace Concurrency;
using namespace Platform;
@@ -182,13 +182,13 @@ DatagramClientContext::SetConnected(
}
bool
Thread::DatagramClientContext::IsConnected() const
ot::DatagramClientContext::IsConnected() const
{
return _connected;
}
void
Thread::DatagramClientContext::OnMessage(
ot::DatagramClientContext::OnMessage(
DatagramSocket^ socket,
MessageReceivedEventArgs^ eventArgs)
{
@@ -32,7 +32,7 @@
#include "IAsyncThreadNotify.h"
#include "ClientArgs.h"
namespace Thread
namespace ot
{
[Windows::Foundation::Metadata::WebHostHidden]
@@ -75,4 +75,4 @@ private:
DataWriter^ _dataWriter;
};
} // namespace Thread
} // namespace ot
@@ -30,7 +30,7 @@
#include <utility>
#include "DatagramListenerContext.h"
using namespace Thread;
using namespace ot;
using namespace Concurrency;
using namespace Platform;
@@ -33,7 +33,7 @@
#include "IAsyncThreadNotify.h"
#include "ListenerArgs.h"
namespace Thread
namespace ot
{
[Windows::Foundation::Metadata::WebHostHidden]
@@ -76,4 +76,4 @@ private:
IOutputStream^ _outputStream;
};
} // namespace Thread
} // namespace ot
+1 -1
View File
@@ -33,7 +33,7 @@
#include "StreamClientContext.h"
#include "DatagramClientContext.h"
using namespace Thread;
using namespace ot;
using namespace Concurrency;
using namespace Platform;
+2 -2
View File
@@ -35,7 +35,7 @@
#include "IClientContext.h"
#include "Protocol.h"
namespace Thread
namespace ot
{
class Factory
@@ -46,4 +46,4 @@ public:
static IClientContext^ CreateClientContext(IAsyncThreadNotify^, ClientArgs^, Protocol);
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
public enum class NotifyType
@@ -42,4 +42,4 @@ public interface struct IAsyncThreadNotify
void NotifyFromAsyncThread(Platform::String^ message, NotifyType type);
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
public interface struct IClientContext
@@ -40,4 +40,4 @@ public interface struct IClientContext
Windows::Foundation::IAsyncAction^ CancelIO();
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
public interface struct IListenerContext
@@ -38,4 +38,4 @@ public interface struct IListenerContext
Windows::Foundation::IAsyncAction^ CancelIO();
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
public interface struct IMainPageUIElements
@@ -44,4 +44,4 @@ public interface struct IMainPageUIElements
}
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
public ref class ListenerArgs sealed
@@ -39,4 +39,4 @@ public:
property Platform::String^ ServerPort;
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -26,10 +26,10 @@
POSSIBILITY OF SUCH DAMAGE.
-->
<Page
x:Class="Thread.MainPage"
x:Class="ot.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Thread"
xmlns:local="using:ot"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
IsTabStop="false"
+1 -1
View File
@@ -30,7 +30,7 @@
#include "MainPage.xaml.h"
#include "TalkGrid.xaml.h"
using namespace Thread;
using namespace ot;
using namespace Platform;
using namespace Windows::Foundation;
+1 -1
View File
@@ -31,7 +31,7 @@
#include "MainPage.g.h"
#include "IMainPageUIElements.h"
namespace Thread
namespace ot
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
+1 -1
View File
@@ -14,7 +14,7 @@
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Thread.App">
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="ot.App">
<uap:VisualElements DisplayName="OpenThread" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="OpenThread" BackgroundColor="white">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
</uap:DefaultTile>
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
public enum class Protocol
@@ -37,4 +37,4 @@ public enum class Protocol
UDP,
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -26,10 +26,10 @@
POSSIBILITY OF SUCH DAMAGE.
-->
<UserControl
x:Class="Thread.ServerControl"
x:Class="ot.ServerControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Thread"
xmlns:local="using:ot"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
+1 -1
View File
@@ -33,7 +33,7 @@
#include "Factory.h"
#include "TalkHelper.h"
using namespace Thread;
using namespace ot;
using namespace Platform;
using namespace Windows::Foundation;
+2 -2
View File
@@ -34,7 +34,7 @@
#include "IMainPageUIElements.h"
#include "Protocol.h"
namespace Thread
namespace ot
{
[Windows::Foundation::Metadata::WebHostHidden]
@@ -59,4 +59,4 @@ private:
Protocol _protocol;
};
} // namespace Thread
} // namespace ot
@@ -30,7 +30,7 @@
#include <utility>
#include "StreamClientContext.h"
using namespace Thread;
using namespace ot;
using namespace Concurrency;
using namespace Platform;
@@ -157,7 +157,7 @@ StreamClientContext::Connect_Click(
}
void
Thread::StreamClientContext::Send_Click(
ot::StreamClientContext::Send_Click(
Platform::Object^ sender,
Windows::UI::Xaml::RoutedEventArgs^ e,
Platform::String^ input)
@@ -166,7 +166,7 @@ Thread::StreamClientContext::Send_Click(
}
IAsyncAction^
Thread::StreamClientContext::CancelIO()
ot::StreamClientContext::CancelIO()
{
return _client->CancelIOAsync();
}
+2 -2
View File
@@ -32,7 +32,7 @@
#include "IAsyncThreadNotify.h"
#include "ClientArgs.h"
namespace Thread
namespace ot
{
[Windows::Foundation::Metadata::WebHostHidden]
@@ -76,4 +76,4 @@ private:
DataWriter^ _dataWriter;
};
} // namespace Thread
} // namespace ot
@@ -30,7 +30,7 @@
#include <utility>
#include "StreamListenerContext.h"
using namespace Thread;
using namespace ot;
using namespace Concurrency;
using namespace Platform;
@@ -32,7 +32,7 @@
#include "IAsyncThreadNotify.h"
#include "ListenerArgs.h"
namespace Thread
namespace ot
{
[Windows::Foundation::Metadata::WebHostHidden]
@@ -68,4 +68,4 @@ private:
Args^ _args;
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
struct TalkConsts
@@ -37,4 +37,4 @@ struct TalkConsts
static constexpr unsigned short DEF_CLIENT_PORT_INIT = 51100;
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -26,10 +26,10 @@
POSSIBILITY OF SUCH DAMAGE.
-->
<Grid
x:Class="Thread.TalkGrid"
x:Class="ot.TalkGrid"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Thread"
xmlns:local="using:ot"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
+1 -1
View File
@@ -31,7 +31,7 @@
#include "ClientControl.xaml.h"
#include "ServerControl.xaml.h"
using namespace Thread;
using namespace ot;
using namespace Platform;
using namespace Windows::Foundation;
+2 -2
View File
@@ -33,7 +33,7 @@
#include "IMainPageUIElements.h"
#include "Protocol.h"
namespace Thread
namespace ot
{
[Windows::Foundation::Metadata::WebHostHidden]
@@ -58,4 +58,4 @@ private:
void Role_Changed(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -28,7 +28,7 @@
#pragma once
namespace Thread
namespace ot
{
ref class ClientControl;
ref class ServerControl;
@@ -60,4 +60,4 @@ private:
}
};
}
}
+2 -2
View File
@@ -42,7 +42,7 @@ using namespace Platform::Metadata;
using namespace Windows::Foundation::Collections;
using namespace Windows::Networking;
namespace Thread
namespace ot
{
ref class otAdapter;
@@ -609,5 +609,5 @@ private:
}
};
} // namespace Thread
} // namespace ot
+2 -2
View File
@@ -38,7 +38,7 @@ using namespace Windows::Foundation::Collections;
#define MAC8_FORMAT L"%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X"
#define MAC8_ARG(mac) mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], mac[6], mac[7]
namespace Thread
namespace ot
{
public delegate void otAdapterArrivalDelegate(otAdapter^ aAdapter);
@@ -249,4 +249,4 @@ private:
}
};
} // namespace Thread
} // namespace ot