Archive:Development/Architecture/KDE4/Solid (zh CN): Difference between revisions

From KDE TechBase
(New page: {{Template:I18n/Language Navigation Bar|Development/Architecture/KDE4/Solid}} == 无缝硬件交互 == With Solid, KDE developers are able to easily write applications with hardware inter...)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Development/Architecture/KDE4/Solid}}
 


== 无缝硬件交互 ==
== 无缝硬件交互 ==
With Solid, KDE developers are able to easily write applications with hardware interaction features. The necessary abstraction to support
有了Solid, KDE的开发人员可以很方便地编写应用程序与硬件交互的功能。必要的抽象,以支持跨平台的应用开发提供了Solid的明确和全面的API 。
cross-platform application development is provided by Solid's clear and comprehensive API.
 
它的目的不是控制装置(Solid不会让你您的手机与您的本地地址本同步起来 ) :Solid*寻找*设备,让您获得关于他们的信息。这样,你可以很容易地看看CPU的功能 ,或驱动您的相机,或装入您的USB笔。总之:它给你“看而不碰”您设备的可能性。


Its aim is not the control of the devices (Solid doesn't let you syncronize your mobile phone with your local addressbook): Solid *looks for* devices and gives you access to the information it has about them. This way, you could easily look at the functions of the cpu, or at the driver that handles your camera, or the mount point of your usb pen. In sum: it gives you the possibility of "seeing without touching" your devices.
现在,你要问(至少,我问自己) : “为什么我应该需要这个类库?我要控制在现有的硬件,而不只是看到它! ”


Now you would ask (at least, I asked myself): "Why should I need this library? I want to control the available hardware, not just see it!"
Solid帮助您很多:任何设备接口,它给你足够的信息来方便地访问它使用其他类库或程序。这样,如果要管理您的相机,您可以使用Solid识别它 (您可以使用Solid: :通知,让你知道当你的相机已经插入) ,然后您可以要求Solid给您您需要的信息来处理它,例如GPhoto或任何你能想到的其他类库。这同样适用于其他任何连接设备:数字电视卡(一旦确认,Solid将给你 相关的装置 的名字) ,音频卡(可以使用ALSA ,开放源码软件或任何你想要得:Solid知道数据访问它) ,便携式媒体播放器,网络卡,等等。此外,它可让您检查您是否已经连接到任何网络或没有,你可以使用Solid通知系统连接(即,您可以要求Solid: “给我进入网络,我不想关心细节“ ) 。


Well, Solid helps you a lot again: for any device interface, it gives you enough information to easily access it using other libraries or stacks. This way, if you want to manage your camera, you can use Solid to recognize it (you can use Solid::Notifier that will let you know when your camera has been plugged in), and then you can ask Solid to give you the information you need to handle it, for example with GPhoto or any other library you can think of. The same applies for any other plugged device: DVB cards (once recognized, Solid gives you the name of the associated device), audio cards (you can use ALSA, OSS or whatever you want: Solid knows the data to access it), portable media players, network cards, et cetera.
无论如何,一些其他的事情需要说,网络设备和蓝牙。这两个类别的设备,Solid提供的“控制”的命名空间:这就是,它可以让你直接控制,无需使用外部库文件。这意味着,通过与Solid,你甚至可以处理您的无线或有线网络接口,准他们的ESSID ,并选择他们的IP配置。您甚至可以通过蓝牙使用您的手机,等等。
Moreover, it lets you check if you're connected to any network or not, and you can use Solid to tell the system to connect (that is, you can ask Solid: "Give me access to the network, I don't want to care about details").


Anyway, some other things needs to be said about network devices and Bluetooth. For these two classes of devices, Solid provides the "Control" namespace: that is, it lets you control them directly, without using external libraries. This means that with Solid, you can even handle your wireless or wired network interfaces, associate them to an essid, and choose ip configuration for them. You can even access your phone through Bluetooth, and so on.
Solid的“列举”部分留守在kdelibs,而Control的命名空间是在kdeBase 。


The "listing" part of Solid resides in kdelibs, while the Control namespace is in kdebase.


[[Category:KDE4]]
[[Category:KDE4]]
[[Category:Architecture]]
[[Category:Architecture]]
[[Category:Solid]]
[[Category:Solid]]

Latest revision as of 12:50, 23 June 2013


无缝硬件交互

有了Solid, KDE的开发人员可以很方便地编写应用程序与硬件交互的功能。必要的抽象,以支持跨平台的应用开发提供了Solid的明确和全面的API 。

它的目的不是控制装置(Solid不会让你您的手机与您的本地地址本同步起来 ) :Solid*寻找*设备,让您获得关于他们的信息。这样,你可以很容易地看看CPU的功能 ,或驱动您的相机,或装入您的USB笔。总之:它给你“看而不碰”您设备的可能性。

现在,你要问(至少,我问自己) : “为什么我应该需要这个类库?我要控制在现有的硬件,而不只是看到它! ”

Solid帮助您很多:任何设备接口,它给你足够的信息来方便地访问它使用其他类库或程序。这样,如果要管理您的相机,您可以使用Solid识别它 (您可以使用Solid: :通知,让你知道当你的相机已经插入) ,然后您可以要求Solid给您您需要的信息来处理它,例如GPhoto或任何你能想到的其他类库。这同样适用于其他任何连接设备:数字电视卡(一旦确认,Solid将给你 相关的装置 的名字) ,音频卡(可以使用ALSA ,开放源码软件或任何你想要得:Solid知道数据访问它) ,便携式媒体播放器,网络卡,等等。此外,它可让您检查您是否已经连接到任何网络或没有,你可以使用Solid通知系统连接(即,您可以要求Solid: “给我进入网络,我不想关心细节“ ) 。

无论如何,一些其他的事情需要说,网络设备和蓝牙。这两个类别的设备,Solid提供的“控制”的命名空间:这就是,它可以让你直接控制,无需使用外部库文件。这意味着,通过与Solid,你甚至可以处理您的无线或有线网络接口,准他们的ESSID ,并选择他们的IP配置。您甚至可以通过蓝牙使用您的手机,等等。

Solid的“列举”部分留守在kdelibs,而Control的命名空间是在kdeBase 。