Changeset 3380

Show
Ignore:
Timestamp:
02/07/08 21:23:09
Author:
pvanhoof
Message:

Naming of platform specific types in .NET API

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bindings/dotnet/platform/libtinymail-platform.metadata.in

    r3377 r3380  
    22<metadata> 
    33 <attr path="/api/namespace[@name='Tny']" name="name">Tny.Platform</attr> 
     4 <attr path="/api/namespace/object[@cname='Tny@PLATFORMSPECIFICNAME@AccountStore']" name="name">AccountStore</attr> 
     5 <attr path="/api/namespace/object[@cname='Tny@PLATFORMSPECIFICNAME@Device']" name="name">Device</attr> 
     6 <attr path="/api/namespace/object[@cname='Tny@PLATFORMSPECIFICNAME@PlatformFactory']" name="name">PlatformFactory</attr> 
    47</metadata> 
  • trunk/configure.ac

    r3373 r3380  
    7171have_conic=false 
    7272PLATFORMDIR=libtinymail-gnome-desktop 
     73PLATFORMSPECIFICNAME=Gnome 
    7374PLATFORM=1 
    7475 
     
    7980[case "${with_platform}" in 
    8081  gnome-desktop)  
    81         PLATFORMDIR=libtinymail-gnome-desktop  
     82        PLATFORMDIR=libtinymail-gnome-desktop 
     83        PLATFORMSPECIFICNAME=Gnome  
    8284        build_uigtk=true 
    8385        build_demoui=true 
     
    8688  maemo) 
    8789        PLATFORMDIR=libtinymail-maemo 
     90        PLATFORMSPECIFICNAME=Maemo 
    8891        build_gtkhtml=false 
    8992        build_mozembed=false 
     
    9598        ;; 
    9699  gpe)  
    97         PLATFORMDIR=libtinymail-gpe  
     100        PLATFORMDIR=libtinymail-gpe 
     101        PLATFORMSPECIFICNAME=Gpe  
    98102        build_uigtk=true 
    99103        build_demoui=true 
     
    102106  olpc) 
    103107        PLATFORMDIR=libtinymail-olpc 
     108        PLATFORMSPECIFICNAME=Olpc 
    104109        build_gtkhtml=false 
    105110        build_mozembed=false 
     
    112117  *)  
    113118        PLATFORMDIR=${with_platform} 
     119        PLATFORMSPECIFICNAME= 
    114120        build_uigtk=false 
    115121        build_demoui=false 
     
    120126AC_SUBST(PLATFORMDIR) 
    121127AC_SUBST(PLATFORM) 
     128AC_SUBST(PLATFORMSPECIFICNAME) 
    122129 
    123130dnl ### Select the html component ## 
     
    540547bindings/dotnet/platform/libtinymail-platform-sharp.pc 
    541548bindings/dotnet/platform/libtinymail-platform-sources.xml 
     549bindings/dotnet/platform/libtinymail-platform.metadata 
    542550bindings/dotnet/platform/Makefile 
    543551libtinymail/Makefile 
  • trunk/tests/dotnet-demo/MainWindow.cs

    r3377 r3380  
    113113        private void OnConnectButtonClicked (object sender, System.EventArgs e) 
    114114        { 
    115                 // Tny.Ui.PlatformFactory factory = Tny.Platform.GnomePlatformFactory.Instance; 
     115                // Tny.Ui.PlatformFactory factory = Tny.Platform.PlatformFactory.Instance; 
    116116                // this.store = factory.NewAccountStore (); 
    117117 
    118                 this.store = new Tny.Platform.GnomeAccountStore (); 
     118                this.store = new Tny.Platform.AccountStore (); 
    119119                Tny.Ui.GTK.FolderStoreTreeModel model = new Tny.Ui.GTK.FolderStoreTreeModel (new Tny.FolderStoreQuery ()); 
    120120                store.GetAccounts (model, Tny.GetAccountsRequestType.StoreAccounts);