+++ /dev/null
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <startup>
- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
- </startup>
-</configuration>
\ No newline at end of file
+++ /dev/null
-using System;
-using Tizen.Content.MediaContent;
-using System.Threading.Tasks;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-
-namespace MediaContentTest
-{
- public class NativeGlib
- {
- [DllImport("libglib-2.0.so.0", CallingConvention = CallingConvention.Cdecl)]
- public static extern IntPtr g_main_loop_new(IntPtr context, bool isRunning);
-
- [DllImport("libglib-2.0.so.0", CallingConvention = CallingConvention.Cdecl)]
- public static extern void g_main_loop_run(IntPtr loop);
- }
- internal class MainClass
- {
- public static async void Method()
- {
- Task<IEnumerable<MediaFolder>> getFoldersTask = ContentManager.GetContentCollectionAsync<MediaFolder>(new ContentFilter());
- IEnumerable<MediaFolder> foldersList = await getFoldersTask;
- foreach (MediaFolder fol in foldersList)
- {
- Console.WriteLine("Folder Path: " + fol.Path);
- }
- }
- public static void Main(string[] args)
- {
- //Get all media count in the media database
- ContentFilter filter = new ContentFilter();
- Console.WriteLine("All Media count: " + ContentManager.GetMediaInformationCount(filter));
-
- // Get different ContentCollections count
- Console.WriteLine("Album Count: " + ContentManager.GetContentCollectionCount(ContentCollectionType.Album, filter));
- Console.WriteLine("Folder Count: " + ContentManager.GetContentCollectionCount(ContentCollectionType.Folder, filter));
- Console.WriteLine("Storage Count: " + ContentManager.GetContentCollectionCount(ContentCollectionType.Storage, filter));
- Console.WriteLine("Tag Count: " + ContentManager.GetContentCollectionCount(ContentCollectionType.Tag, filter));
- Console.WriteLine("PlayList Count: " + ContentManager.GetContentCollectionCount(ContentCollectionType.PlayList, filter));
-
- //Get Bookmark count
- Console.WriteLine("Book mark Count: " + ContentManager.GetBookmarkCount(filter));
- Method();
-
- ContentCollection tag = new Tag("cool");
- Console.WriteLine(tag.GetType());
- IntPtr loop = NativeGlib.g_main_loop_new((IntPtr)0, false);
- NativeGlib.g_main_loop_run(loop);
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{38D73AD8-5F12-4FE1-8C08-5FB46F0D6DAE}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>MediaContentTest</RootNamespace>
- <AssemblyName>MediaContentTest</AssemblyName>
- <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <PlatformTarget>AnyCPU</PlatformTarget>
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Net.Http" />
- <Reference Include="System.Xml" />
- <Reference Include="Tizen">
- <HintPath>..\..\..\Desktop\Tizen_dlls\Tizen.dll</HintPath>
- </Reference>
- <Reference Include="Tizen.Applications">
- <HintPath>..\..\..\Desktop\Tizen_dlls\Tizen.Applications.dll</HintPath>
- </Reference>
- <Reference Include="Tizen.Content">
- <HintPath>..\Tizen.Content\bin\Debug\Tizen.Content.dll</HintPath>
- </Reference>
- <Reference Include="Tizen.Internals">
- <HintPath>..\..\..\Desktop\Tizen_dlls\Tizen.Internals.dll</HintPath>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="MediaContentTest.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="App.config" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
\ No newline at end of file
+++ /dev/null
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("MediaContentTest")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("MediaContentTest")]
-[assembly: AssemblyCopyright("Copyright \u00A9 2016")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("38d73ad8-5f12-4fe1-8c08-5fb46f0d6dae")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]